1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #4798 from willthames/aws_access_key_fix

AWS_ACCESS_KEY misspelt in shared EC2 connection library
This commit is contained in:
James Cammarata 2013-11-04 06:24:57 -08:00
commit 9972265fd3

View file

@ -16,8 +16,8 @@ def get_ec2_creds(module):
if not ec2_access_key: if not ec2_access_key:
if 'EC2_ACCESS_KEY' in os.environ: if 'EC2_ACCESS_KEY' in os.environ:
ec2_access_key = os.environ['EC2_ACCESS_KEY'] ec2_access_key = os.environ['EC2_ACCESS_KEY']
elif 'AWS_ACESS_KEY' in os.environ: elif 'AWS_ACCESS_KEY' in os.environ:
ec2_access_key = os.environ['AWS_ACESS_KEY'] ec2_access_key = os.environ['AWS_ACCESS_KEY']
else: else:
module.fail_json(msg="Please specify an ec2_access_key") module.fail_json(msg="Please specify an ec2_access_key")