Compare commits
2 Commits
7c09b7c73e
...
9d7a892355
Author | SHA1 | Date |
---|---|---|
Michael Meidlinger | 9d7a892355 | |
Michael Meidlinger | 32cfd1ed52 |
|
@ -512,6 +512,9 @@ def list_target_files(config):
|
|||
|
||||
# connect to the region & bucket
|
||||
try:
|
||||
if config['target_user'] == "" and config['target_pass'] == "":
|
||||
s3 = boto3.client('s3', endpoint_url=f'https://{target.hostname}')
|
||||
else:
|
||||
s3 = boto3.client('s3', \
|
||||
endpoint_url=f'https://{target.hostname}', \
|
||||
aws_access_key_id=config['target_user'], \
|
||||
|
|
Loading…
Reference in New Issue