Skip to content

Commit

Permalink
use pythonic dict
Browse files Browse the repository at this point in the history
  • Loading branch information
abikouo committed Oct 18, 2022
1 parent 55da5a3 commit f2fc643
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions plugins/module_utils/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,7 @@ def parse_default_endpoint(url, mode, encryption_mode, dualstack, sig_4):


def s3_conn_params(mode, encryption_mode, dualstack, aws_connect_kwargs, location, ceph, endpoint_url, sig_4=False):
params = dict(
conn_type='client',
resource='s3',
region=location,
**aws_connect_kwargs
)
params = {"conn_type": "client", "resource": "s3", "region": location, **aws_connect_kwargs}
if ceph:
endpoint_p = parse_ceph_endpoint(endpoint_url)
elif is_fakes3(endpoint_url):
Expand Down

0 comments on commit f2fc643

Please sign in to comment.