- no need to logout
This commit is contained in:
parent
58de53d97b
commit
c08bbd165b
@ -156,8 +156,8 @@ class backup_switch(backup_generic):
|
||||
if "Unrecognized command" in lines:
|
||||
raise Exception("Bad Credentials")
|
||||
child.sendline("exit")
|
||||
child.expect( ">")
|
||||
child.sendline("logout")
|
||||
#child.expect( ">")
|
||||
#child.sendline("logout")
|
||||
for line in lines.split("\n")[1:-1]:
|
||||
open(filename,"a").write(line.strip()+"\n")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user