mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 10:51:24 -07:00
Fix undefined variables, basestring usage, and some associated python3 issues
This commit is contained in:
parent
9f7b0dfc30
commit
225fa5d092
84 changed files with 652 additions and 963 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue