mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Fix undefined variables, basestring usage, and some associated python3 issues
This commit is contained in:
@@ -107,7 +107,8 @@ def retry(retries=None, retry_pause=1):
|
||||
if retries is not None:
|
||||
ret = None
|
||||
while True:
|
||||
retry_count += 1
|
||||
# pylint doesn't understand this is a closure
|
||||
retry_count += 1 # pylint: disable=undefined-variable
|
||||
if retry_count >= retries:
|
||||
raise Exception("Retry limit exceeded: %d" % retries)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user