From 9f0eafa52f8105345a1af6ffac89673f35261417 Mon Sep 17 00:00:00 2001 From: Joel Bender Date: Mon, 2 Apr 2018 16:50:26 -0400 Subject: [PATCH] things that aren't routers do not have adapters bound to a specific network, not even zero, so the adapter key is 'None' --- samples/WhoIsRouter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/WhoIsRouter.py b/samples/WhoIsRouter.py index 10fd8cf..66f8a47 100755 --- a/samples/WhoIsRouter.py +++ b/samples/WhoIsRouter.py @@ -72,12 +72,12 @@ class WhoIsRouterConsoleCmd(ConsoleCmd): return # give it to the application - this_application.request(this_application.nsap.adapters[0], request) + this_application.request(this_application.nsap.adapters[None], request) def do_wirtn(self, args): """wirtn [ ]""" args = args.split() - if _debug: WhoIsRouterConsoleCmd._debug("do_irt %r", args) + if _debug: WhoIsRouterConsoleCmd._debug("do_wirtn %r", args) # build a request try: @@ -90,7 +90,7 @@ class WhoIsRouterConsoleCmd(ConsoleCmd): return # give it to the application - this_application.request(this_application.nsap.adapters[0], request) + this_application.request(this_application.nsap.adapters[None], request) # # __main__