diff options
author | Peter Barabas <peter.barabas@ericsson.com> | 2016-09-28 16:07:01 +0200 |
---|---|---|
committer | Peter Barabas <peter.barabas@ericsson.com> | 2016-09-28 16:07:01 +0200 |
commit | c10ff22b45fab932e0a1b3666896e011177bbaad (patch) | |
tree | 1349de5cfd96bdae4e8864e90905aa5e980d561b /deploy/common.py | |
parent | dd4357385318eccfa82c8e079b07e9373ec93cfa (diff) |
Simplify decrement
Change-Id: I5ad9ee013cc3ac07e75b4c94d71af3c9fd46d281
Signed-off-by: Peter Barabas <peter.barabas@ericsson.com>
Diffstat (limited to 'deploy/common.py')
-rw-r--r-- | deploy/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/common.py b/deploy/common.py index 07ad54372..70a278a29 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, |