Commit 88acb48e by James Cammarata

Merge branch 'ec2_boto_config_region' of https://github.com/willthames/ansible…

Merge branch 'ec2_boto_config_region' of https://github.com/willthames/ansible into willthames-ec2_boto_config_region
parents 2a383786 d5c309e2
......@@ -69,6 +69,9 @@ def get_ec2_creds(module):
region = os.environ['EC2_REGION']
elif 'AWS_REGION' in os.environ:
region = os.environ['AWS_REGION']
else:
# boto.config.get returns None if config not found
region = boto.config.get('Boto', 'ec2_region_name')
return ec2_url, ec2_access_key, ec2_secret_key, region
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment