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