aboutsummaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorPeter Barabas <peter.barabas@ericsson.com>2016-09-13 10:28:57 +0200
committerJonas Bjurel <jonas.bjurel@ericsson.com>2016-09-20 17:30:58 +0000
commit0583590a2a8a9451d385c7a420340bc5b596d536 (patch)
tree877926728c577ee31c3b294fab4e810761b7deb2 /deploy
parent53e6d97c9157f1e908d99dcca1207de23ea73132 (diff)
Change prints from statements to function calls
Change-Id: I378baa85bd9e1b9b535a2d4e9c8dcb34a267a6e5 Signed-off-by: Peter Barabas <peter.barabas@ericsson.com>
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