fix indentation
This commit is contained in:
parent
b15c4569eb
commit
2a0cc9e45f
|
@ -146,20 +146,20 @@ class PypoFetch(Thread):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def telnet_send(logger, lock, commands):
|
def telnet_send(logger, lock, commands):
|
||||||
try:
|
try:
|
||||||
lock.acquire()
|
lock.acquire()
|
||||||
|
|
||||||
tn = telnetlib.Telnet(LS_HOST, LS_PORT)
|
tn = telnetlib.Telnet(LS_HOST, LS_PORT)
|
||||||
for i in commands:
|
for i in commands:
|
||||||
logger.info(i)
|
logger.info(i)
|
||||||
tn.write(i)
|
tn.write(i)
|
||||||
|
|
||||||
tn.write('exit\n')
|
tn.write('exit\n')
|
||||||
tn.read_all()
|
tn.read_all()
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.error(str(e))
|
logger.error(str(e))
|
||||||
finally:
|
finally:
|
||||||
lock.release()
|
lock.release()
|
||||||
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in New Issue