Merge "Fix openstack.cloud.port module failure in check mode"

This commit is contained in:
Zuul
2024-12-19 23:07:20 +00:00
committed by Gerrit Code Review

View File

@@ -511,7 +511,7 @@ class PortModule(OpenStackModule):
**(dict(network_id=network.id) if network else dict()))
if self.ansible.check_mode:
self.exit_json(changed=self._will_change(network, port, state))
self.exit_json(changed=self._will_change(port, state))
if state == 'present' and not port:
# create port