mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Fix default for os_network port_security_enabled (#52821)
The default value should be None, for "unset" not False.
This commit is contained in:
parent
df5b8f65ca
commit
4c150b39c1
1 changed files with 2 additions and 2 deletions
|
@ -164,7 +164,7 @@ def main():
|
||||||
provider_segmentation_id=dict(required=False, type='int'),
|
provider_segmentation_id=dict(required=False, type='int'),
|
||||||
state=dict(default='present', choices=['absent', 'present']),
|
state=dict(default='present', choices=['absent', 'present']),
|
||||||
project=dict(default=None),
|
project=dict(default=None),
|
||||||
port_security_enabled=dict(default=False, type='bool')
|
port_security_enabled=dict(type='bool')
|
||||||
)
|
)
|
||||||
|
|
||||||
module_kwargs = openstack_module_kwargs()
|
module_kwargs = openstack_module_kwargs()
|
||||||
|
@ -179,7 +179,7 @@ def main():
|
||||||
provider_network_type = module.params['provider_network_type']
|
provider_network_type = module.params['provider_network_type']
|
||||||
provider_segmentation_id = module.params['provider_segmentation_id']
|
provider_segmentation_id = module.params['provider_segmentation_id']
|
||||||
project = module.params.get('project')
|
project = module.params.get('project')
|
||||||
port_security_enabled = module.params['port_security_enabled']
|
port_security_enabled = module.params.get('port_security_enabled')
|
||||||
|
|
||||||
sdk, cloud = openstack_cloud_from_module(module)
|
sdk, cloud = openstack_cloud_from_module(module)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue