Damn indents!
This commit is contained in:
@@ -38,13 +38,11 @@ class INUeCommand():
|
||||
reverse: bool = False
|
||||
|
||||
def __post_init__(self):
|
||||
print("Context %s" % self.context)
|
||||
if self.reverse:
|
||||
self.position, self.value = self.value, self.position
|
||||
|
||||
def get_context(self):
|
||||
"""Get the context of the command, ready to send."""
|
||||
print (self.context)
|
||||
return ("contextid %s\n" % self.context).encode('ascii')
|
||||
|
||||
def get_command(self):
|
||||
@@ -105,7 +103,6 @@ class Worker(threading.Thread):
|
||||
try:
|
||||
with telnetlib.Telnet(inue, PORT) as telnet:
|
||||
for slot in range(1, 10):
|
||||
print("Slot: %s" % slot)
|
||||
if send_config(telnet,
|
||||
INUeCommand("Slot%s_I" % slot, "ceConfigBridgeStpMode")):
|
||||
rstp_dac = slot
|
||||
@@ -128,7 +125,7 @@ class Worker(threading.Thread):
|
||||
if not send_config(telnet, command):
|
||||
self.__failed.put(inue)
|
||||
fail = True
|
||||
continue
|
||||
break
|
||||
|
||||
if fail:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user