retain behaviour that st2common.utils.shell.run_command returns stdout and stderror as strings in Py3/2
@@ -81,6 +81,9 @@ def run_command(cmd, stdin=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
stdout, stderr = process.communicate()
exit_code = process.returncode
+ if six.PY3:
+ return (exit_code, stdout.decode(), stderr.decode())
+ else:
return (exit_code, stdout, stderr)
