cloudstack: add additional CLOUDSTACK_VPC env var (#18467)

This commit is contained in:
René Moser 2016-11-11 14:03:43 +01:00 committed by GitHub
parent 3f785ee173
commit 80af461178
2 changed files with 3 additions and 1 deletions

View file

@ -216,6 +216,8 @@ class AnsibleCloudStack(object):
return self._get_by_key(key, self.vpc)
vpc = self.module.params.get('vpc')
if not vpc:
vpc = os.environ.get('CLOUDSTACK_VPC')
if not vpc:
return None