cloudstack: cs_vpc: fix vpc in projects not found (#22416)

pull/22153/head^2
René Moser 8 years ago committed by GitHub
parent 8102e66425
commit 6f426b9d06

@ -207,7 +207,12 @@ tags:
'''
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.cloudstack import *
from ansible.module_utils.cloudstack import (
AnsibleCloudStack,
CloudStackException,
cs_argument_spec,
cs_required_together,
)
class AnsibleCloudStackVpc(AnsibleCloudStack):
@ -251,7 +256,7 @@ class AnsibleCloudStackVpc(AnsibleCloudStack):
'projectid': self.get_project(key='id'),
'zoneid': self.get_zone(key='id'),
}
vpcs = self.cs.listVPCs()
vpcs = self.cs.listVPCs(**args)
if vpcs:
vpc_name = self.module.params.get('name')
for v in vpcs['vpc']:

Loading…
Cancel
Save