From c08bbd165b7d4aa632999dadf0b96574d1fef636 Mon Sep 17 00:00:00 2001 From: ssamson-tis Date: Fri, 4 Mar 2016 17:29:02 +0100 Subject: [PATCH] - no need to logout --- libtisbackup/backup_switch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtisbackup/backup_switch.py b/libtisbackup/backup_switch.py index eb665f9..283d39b 100644 --- a/libtisbackup/backup_switch.py +++ b/libtisbackup/backup_switch.py @@ -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")