mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Minor tweak to region config in boto configuration file
This commit is contained in:
parent
88acb48e61
commit
14ba10393b
1 changed files with 3 additions and 1 deletions
|
@ -71,7 +71,9 @@ def get_ec2_creds(module):
|
||||||
region = os.environ['AWS_REGION']
|
region = os.environ['AWS_REGION']
|
||||||
else:
|
else:
|
||||||
# boto.config.get returns None if config not found
|
# boto.config.get returns None if config not found
|
||||||
region = boto.config.get('Boto', 'ec2_region_name')
|
region = boto.config.get('Boto', 'aws_region')
|
||||||
|
if not region:
|
||||||
|
region = boto.config.get('Boto', 'ec2_region')
|
||||||
|
|
||||||
return ec2_url, ec2_access_key, ec2_secret_key, region
|
return ec2_url, ec2_access_key, ec2_secret_key, region
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue