1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02: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:
Monty Taylor 2019-02-22 11:11:47 -06:00 committed by ansibot
parent df5b8f65ca
commit 4c150b39c1

View file

@ -164,7 +164,7 @@ def main():
provider_segmentation_id=dict(required=False, type='int'),
state=dict(default='present', choices=['absent', 'present']),
project=dict(default=None),
port_security_enabled=dict(default=False, type='bool')
port_security_enabled=dict(type='bool')
)
module_kwargs = openstack_module_kwargs()
@ -179,7 +179,7 @@ def main():
provider_network_type = module.params['provider_network_type']
provider_segmentation_id = module.params['provider_segmentation_id']
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)
try: