diff options
author | Peter Barabas <peter.barabas@ericsson.com> | 2016-09-13 10:28:57 +0200 |
---|---|---|
committer | Jonas Bjurel <jonas.bjurel@ericsson.com> | 2016-09-20 17:30:58 +0000 |
commit | 0583590a2a8a9451d385c7a420340bc5b596d536 (patch) | |
tree | 877926728c577ee31c3b294fab4e810761b7deb2 /deploy | |
parent | 53e6d97c9157f1e908d99dcca1207de23ea73132 (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.py | 10 |
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 |