From 05c64a3e32561db629a19439a4b187435a12eb0b Mon Sep 17 00:00:00 2001 From: Adrian Woodley Date: Tue, 23 Jul 2019 02:19:30 +0800 Subject: [PATCH] Ok, now what?! --- aviat_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aviat_config.py b/aviat_config.py index 08bd79b..1c15ac5 100755 --- a/aviat_config.py +++ b/aviat_config.py @@ -123,6 +123,7 @@ class Worker(threading.Thread): for command in commands: if not send_config(telnet, command): + print(command.get_command()) self.__failed.put(inue) fail = True break @@ -140,7 +141,7 @@ class Worker(threading.Thread): with telnetlib.Telnet(new_ip, PORT) as telnet: self.__passed.put(new_ip) except OSError: - FAILED_QUEUE.put(inue) + self.__failed.put(inue) continue