aboutsummaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorMichal Skalski <mskalski@mirantis.com>2016-09-22 08:03:52 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-09-22 08:03:52 +0000
commit3f1fd8b9a96e2ce7bbaa53d89fe19404590e5bd4 (patch)
tree99341db28c112d7c82307d093860bd7289738643 /deploy
parent61d9f66916fe7cacc1df25438b4060b9f3c9402d (diff)
parent0583590a2a8a9451d385c7a420340bc5b596d536 (diff)
Merge "Change prints from statements to function calls"
Diffstat (limited to 'deploy')
-rw-r--r--deploy/common.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/deploy/common.py b/deploy/common.py
index 80832e201..07ad54372 100644
--- a/deploy/common.py
+++ b/deploy/common.py
@@ -74,13 +74,13 @@ def exec_cmd(cmd, check=True, attempts=1, delay=5, verbose=False, mask_args=[],
if check:
if return_code > 0:
stderr = stderr.strip()
- print "Failed command: " + str(masked_cmd)
- print "Command returned response: " + str(stderr)
- print "Command return code: " + str(return_code)
+ print("Failed command: " + str(masked_cmd))
+ print("Command returned response: " + str(stderr))
+ print("Command return code: " + str(return_code))
raise Exception(stderr)
else:
- print "Command: " + str(masked_cmd)
- print str(response)
+ print("Command: " + str(masked_cmd))
+ print(str(response))
return response
return response, return_code