mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 10:51:24 -07:00
cloudstack: add additional CLOUDSTACK_VPC env var (#18467)
This commit is contained in:
parent
3f785ee173
commit
80af461178
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue