mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
PEP 8 fix.
This commit is contained in:
@@ -251,7 +251,7 @@ class Ec2Inventory(object):
|
|||||||
self.regions = configRegions.split(",")
|
self.regions = configRegions.split(",")
|
||||||
if 'auto' in self.regions:
|
if 'auto' in self.regions:
|
||||||
env_region = os.environ.get('AWS_REGION')
|
env_region = os.environ.get('AWS_REGION')
|
||||||
if env_region == None:
|
if env_region is None:
|
||||||
env_region = os.environ.get('AWS_DEFAULT_REGION')
|
env_region = os.environ.get('AWS_DEFAULT_REGION')
|
||||||
self.regions = [ env_region ]
|
self.regions = [ env_region ]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user