Skip to content

Commit

Permalink
Fix off-by-one error with retries
Browse files Browse the repository at this point in the history
  • Loading branch information
jimi-c committed Jun 23, 2016
1 parent 3e4755f commit 948682d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ansible/executor/task_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,11 @@ def _execute(self, variables=None):

# Read some values from the task, so that we can modify them if need be
if self._task.until:
retries = self._task.retries
retries = self._task.retries + 1
if retries is None:
retries = 3
elif retries <= 0:
retries = 1
else:
retries = 1

Expand Down

0 comments on commit 948682d

Please sign in to comment.