Skip to content

Commit

Permalink
efs - Use yield from in order to fix sanity errors.
Browse files Browse the repository at this point in the history
Signed-off-by: Alina Buzachis <[email protected]>
  • Loading branch information
alinabuzachis committed Apr 8, 2024
1 parent 915cb0d commit d5a507a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/20240408-efs-sanity_fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trivial:
- efs - Use ``yield from`` in ordr to fix sanity errors.
3 changes: 1 addition & 2 deletions plugins/modules/efs.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,7 @@ def iterate_all(attr, map_method, **kwargs):
while True:
try:
data = map_method(**args)
for elm in data[attr]:
yield elm
yield from data[attr]
if "NextMarker" in data:
args["Marker"] = data["Nextmarker"]
continue
Expand Down

0 comments on commit d5a507a

Please sign in to comment.