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 'EC2_ACCESS_KEY' in os.environ:
ec2_access_key = os.environ['EC2_ACCESS_KEY']
elif 'AWS_ACESS_KEY' in os.environ:
ec2_access_key = os.environ['AWS_ACESS_KEY']
elif 'AWS_ACCESS_KEY' in os.environ:
ec2_access_key = os.environ['AWS_ACCESS_KEY']
else:
module.fail_json(msg="Please specify an ec2_access_key")