Skip to content

Commit

Permalink
make dict comprehension contingent on 'not None'
Browse files Browse the repository at this point in the history
  • Loading branch information
nbargnesi authored and tremble committed Mar 6, 2024
1 parent 89ec6ba commit fe1431e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/s3_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def list_keys(s3, bucket, prefix=None, marker=None, max_keys=None):
"StartAfter": marker,
"MaxKeys": max_keys,
}
pagination_params = {k: v for k, v in pagination_params.items() if v}
pagination_params = {k: v for k, v in pagination_params.items() if v is not None}

try:
return list(paginated_list(s3, **pagination_params))
Expand Down

0 comments on commit fe1431e

Please sign in to comment.