mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Handle rate limits on every iteration (#23726)
This commit is contained in:
parent
a457c2af59
commit
74f6b64fb0
1 changed files with 6 additions and 1 deletions
|
@ -521,7 +521,12 @@ def main():
|
||||||
|
|
||||||
sets = invoke_with_throttling_retries(conn.get_all_rrsets, zone.id, name=record_in,
|
sets = invoke_with_throttling_retries(conn.get_all_rrsets, zone.id, name=record_in,
|
||||||
type=type_in, identifier=identifier_in)
|
type=type_in, identifier=identifier_in)
|
||||||
for rset in sets:
|
sets_iter = iter(sets)
|
||||||
|
while True:
|
||||||
|
try:
|
||||||
|
rset = invoke_with_throttling_retries(next, sets_iter)
|
||||||
|
except StopIteration:
|
||||||
|
break
|
||||||
# Due to a bug in either AWS or Boto, "special" characters are returned as octals, preventing round
|
# Due to a bug in either AWS or Boto, "special" characters are returned as octals, preventing round
|
||||||
# tripping of things like * and @.
|
# tripping of things like * and @.
|
||||||
decoded_name = rset.name.replace(r'\052', '*')
|
decoded_name = rset.name.replace(r'\052', '*')
|
||||||
|
|
Loading…
Reference in a new issue