Simplify decrement 25/22525/1
authorPeter Barabas <peter.barabas@ericsson.com>
Wed, 28 Sep 2016 14:07:01 +0000 (16:07 +0200)
committerPeter Barabas <peter.barabas@ericsson.com>
Wed, 28 Sep 2016 14:07:01 +0000 (16:07 +0200)
Change-Id: I5ad9ee013cc3ac07e75b4c94d71af3c9fd46d281
Signed-off-by: Peter Barabas <peter.barabas@ericsson.com>
deploy/common.py

index 07ad543..70a278a 100644 (file)
@@ -57,7 +57,7 @@ def exec_cmd(cmd, check=True, attempts=1, delay=5, verbose=False, mask_args=[],
 
     # a negative value means forever
     while attempts != 0:
-        attempts = attempts - 1
+        attempts -= 1
         process = subprocess.Popen(cmd,
                                    stdout=subprocess.PIPE,
                                    stderr=subprocess.PIPE,