Skip to content

Commit

Permalink
efs - Use yield from in order to fix sanity errors. (#2071)
Browse files Browse the repository at this point in the history
efs - Use `yield from` in order to fix sanity errors

SUMMARY

efs - Use yield from in order to fix sanity errors

ISSUE TYPE


Bugfix Pull Request
Docs Pull Request
Feature Pull Request
New Module Pull Request

COMPONENT NAME

efs
ADDITIONAL INFORMATION

Reviewed-by: Mark Chappell
  • Loading branch information
alinabuzachis authored Apr 8, 2024
1 parent cffd148 commit a15e50f
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 a15e50f

Please sign in to comment.