From 76c810afe345454475242bc7e893f86a172430ba Mon Sep 17 00:00:00 2001 From: willthames Date: Mon, 4 Nov 2013 15:24:53 +1000 Subject: [PATCH] AWS_ACCESS_KEY misspelt in shared EC2 connection library --- lib/ansible/module_utils/ec2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/ec2.py b/lib/ansible/module_utils/ec2.py index 3bd1217337..eac7c5be75 100644 --- a/lib/ansible/module_utils/ec2.py +++ b/lib/ansible/module_utils/ec2.py @@ -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")