summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Skalski <mskalski@mirantis.com>2016-10-03 08:55:03 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-10-03 08:55:03 +0000
commit5a2baab2f610d436d7ef35ae1fd3af83685860e3 (patch)
treec137887b847a0bc23af08459a110cc2d9759a56e
parentcf93e6ee11c96de090b04196cc96b4a6b0948928 (diff)
parentc10ff22b45fab932e0a1b3666896e011177bbaad (diff)
Merge "Simplify decrement"
-rw-r--r--deploy/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/common.py b/deploy/common.py
index 51b70fe46..dab9602c5 100644
--- a/deploy/common.py
+++ b/deploy/common.py
@@ -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,