mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-08-29 08:30:53 +00:00
Merge 32cfd1ed52
into e931e103fe
This commit is contained in:
commit
f713ffa923
@ -511,6 +511,9 @@ def list_target_files(config):
|
|||||||
|
|
||||||
# connect to the region & bucket
|
# connect to the region & bucket
|
||||||
try:
|
try:
|
||||||
|
if config['target_user'] == "" and config['target_pass'] == "":
|
||||||
|
s3 = boto3.client('s3', endpoint_url=f'https://{target.hostname}')
|
||||||
|
else:
|
||||||
s3 = boto3.client('s3', \
|
s3 = boto3.client('s3', \
|
||||||
endpoint_url=f'https://{target.hostname}', \
|
endpoint_url=f'https://{target.hostname}', \
|
||||||
aws_access_key_id=config['target_user'], \
|
aws_access_key_id=config['target_user'], \
|
||||||
|
Loading…
Reference in New Issue
Block a user