From c10ff22b45fab932e0a1b3666896e011177bbaad Mon Sep 17 00:00:00 2001 From: Peter Barabas Date: Wed, 28 Sep 2016 16:07:01 +0200 Subject: Simplify decrement Change-Id: I5ad9ee013cc3ac07e75b4c94d71af3c9fd46d281 Signed-off-by: Peter Barabas --- deploy/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deploy') 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, -- cgit 1.2.3-korg