Merge pull request #48 from cclauss/patch-1

Typo in variable name: file --> source_file
This commit is contained in:
Ken Johnson
2018-05-23 20:50:34 -03:00
committed by GitHub

View File

@@ -286,7 +286,7 @@ def s3_upload_file(bucket, source_file, dest_file):
print("[-] {} not found [-]".format(source_file)) print("[-] {} not found [-]".format(source_file))
except botocore.exceptions.ClientError as e: except botocore.exceptions.ClientError as e:
if e.response['Error']['Code'] == "404": if e.response['Error']['Code'] == "404":
print("{} object does not exist.".format(file)) print("{} object does not exist.".format(source_file))
elif e.response['Error']['Code'] == 'InvalidClientTokenId': elif e.response['Error']['Code'] == 'InvalidClientTokenId':
sys.exit("The AWS KEY IS INVALID. Exiting") sys.exit("The AWS KEY IS INVALID. Exiting")
elif e.response['Error']['Code'] == 'NotSignedUp': elif e.response['Error']['Code'] == 'NotSignedUp':