From 29e3f3dac82cb42abe2ea0f95668548f8c33e68f Mon Sep 17 00:00:00 2001 From: Hirano Yuki Date: Fri, 30 Aug 2024 16:05:56 +0900 Subject: [PATCH] Fix openstack.cloud.port module failure in check mode The openstack.cloud.port module always fails in check mode due to it calls PortModule._will_change() with the wrong number of arguments. Change-Id: I7e8a4473df8bb27d888366b444a54d3f7b1c2fa8 --- plugins/modules/port.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/port.py b/plugins/modules/port.py index 65e3b4cc..09bea0c3 100644 --- a/plugins/modules/port.py +++ b/plugins/modules/port.py @@ -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