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 committed Jan 19, 2024
1 parent a41f6ad commit 6940862
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 @@ -571,7 +571,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 6940862

Please sign in to comment.