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

AWS_ACCESS_KEY misspelt in shared EC2 connection library

This commit is contained in:
willthames 2013-11-04 15:24:53 +10:00
parent eab6737209
commit 76c810afe3

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")