Ok, now what?!
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user