summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkpov_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kpov_util.py b/kpov_util.py
index d6bdef8..2ebc725 100755
--- a/kpov_util.py
+++ b/kpov_util.py
@@ -29,7 +29,7 @@ def ssh_test(host, user, password, commands=()):
s.sendline(command)
s.prompt()
if test:
- results[test] = s.before[len(command+'\r\n'):]
+ results[test] = s.before[len(command+'\r\n'):].strip().replace('\r\n', '\n')
s.logout()
except pexpect.exceptions.EOF as e:
results['ssh'] = 'connection to {} as {}/{} failed (EOF)'.format(host, user, password)