ffdc: Convert paramiko return values to string.
Convert paramiko return stdout and stderr from list of strings
to one string for processing.
Test:
- Regression test to SSH Servers.
Signed-off-by: Peter D Phan <peterp@us.ibm.com>
Change-Id: I74afdeb268cad5c70db8422bef7d7118f0d9e8d9
diff --git a/ffdc/lib/ssh_utility.py b/ffdc/lib/ssh_utility.py
index f4182ec..137fd79 100644
--- a/ffdc/lib/ssh_utility.py
+++ b/ffdc/lib/ssh_utility.py
@@ -94,7 +94,16 @@
break
time.sleep(1)
cmd_exit_code = stdout.channel.recv_exit_status()
- return cmd_exit_code, stderr.readlines(), stdout.readlines()
+
+ # Convert list of string to one string
+ err = ''
+ out = ''
+ for item in stderr.readlines():
+ err += item
+ for item in stdout.readlines():
+ out += item
+
+ return cmd_exit_code, err, out
except (paramiko.AuthenticationException, paramiko.SSHException,
paramiko.ChannelException, SocketTimeout) as e: