cs_vpc: fix network_domain param ignored (#35690)

This commit is contained in:
René Moser 2018-02-03 21:21:24 +01:00 committed by GitHub
parent 196f2f382b
commit c6f397b160
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -35,6 +35,7 @@ options:
description:
- "Network domain for the VPC."
- "All networks inside the VPC will belong to this domain."
- "Only considered while creating the VPC, can not be changed."
vpc_offering:
description:
- "Name of the VPC offering."
@ -265,6 +266,7 @@ class AnsibleCloudStackVpc(AnsibleCloudStack):
args = {
'name': self.module.params.get('name'),
'displaytext': self.get_or_fallback('display_text', 'name'),
'networkdomain': self.module.params.get('network_domain'),
'vpcofferingid': self.get_vpc_offering(key='id'),
'cidr': self.module.params.get('cidr'),
'account': self.get_account(key='name'),