Change prints from statements to function calls 89/20989/3
authorPeter Barabas <peter.barabas@ericsson.com>
Tue, 13 Sep 2016 08:28:57 +0000 (10:28 +0200)
committerJonas Bjurel <jonas.bjurel@ericsson.com>
Tue, 20 Sep 2016 17:30:58 +0000 (17:30 +0000)
Change-Id: I378baa85bd9e1b9b535a2d4e9c8dcb34a267a6e5
Signed-off-by: Peter Barabas <peter.barabas@ericsson.com>
deploy/common.py

index 80832e2..07ad543 100644 (file)
@@ -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