diff --git a/changelogs/fragments/20240408-efs-sanity_fix.yml b/changelogs/fragments/20240408-efs-sanity_fix.yml new file mode 100644 index 00000000000..f8be70f183b --- /dev/null +++ b/changelogs/fragments/20240408-efs-sanity_fix.yml @@ -0,0 +1,2 @@ +trivial: + - efs - Use ``yield from`` in ordr to fix sanity errors. diff --git a/plugins/modules/efs.py b/plugins/modules/efs.py index 6b9390f2b4d..32992c4a3c2 100644 --- a/plugins/modules/efs.py +++ b/plugins/modules/efs.py @@ -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