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
This commit is contained in:
parent
529c1e8dcc
commit
29e3f3dac8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user