Merge pull request #5212 from tarka/devel
Cast the retrieved `retries` var to an int before incrementing as it may...
This commit is contained in:
commit
fa8a02dcda
1 changed files with 1 additions and 1 deletions
|
@ -691,7 +691,7 @@ class Runner(object):
|
||||||
if not utils.check_conditional(cond, self.basedir, inject, fail_on_undefined=self.error_on_undefined_vars):
|
if not utils.check_conditional(cond, self.basedir, inject, fail_on_undefined=self.error_on_undefined_vars):
|
||||||
retries = self.module_vars.get('retries')
|
retries = self.module_vars.get('retries')
|
||||||
delay = self.module_vars.get('delay')
|
delay = self.module_vars.get('delay')
|
||||||
for x in range(1, retries + 1):
|
for x in range(1, int(retries) + 1):
|
||||||
# template the delay, cast to float and sleep
|
# template the delay, cast to float and sleep
|
||||||
delay = template.template(self.basedir, delay, inject, expand_lists=False)
|
delay = template.template(self.basedir, delay, inject, expand_lists=False)
|
||||||
delay = float(delay)
|
delay = float(delay)
|
||||||
|
|
Loading…
Reference in a new issue