checkmode error in port.py

Bug #2053232 reported by Wouter
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ansible-collections-openstack
New
Undecided
Unassigned

Bug Description

3 arguments (technically 4, including self) are given to the self._will_change function on line 514 in port.py, while this function only takes 2 (technically 3, including self).

https://opendev.org/openstack/ansible-collections-openstack/src/branch/master/plugins/modules/port.py#L514

The error when running ansible-playbook with --check:
  File "/tmp/ansible_openstack.cloud.port_payload_k5oqd1w3/ansible_openstack.cloud.port_payload.zip/ansible_collections/openstack/cloud/plugins/modules/port.py", line 514, in run
TypeError: PortModule._will_change() takes 3 positional arguments but 4 were given

Current code in port.py:
..
        if self.ansible.check_mode:
            self.exit_json(changed=self._will_change(network, port, state))
..

    def _will_change(self, port, state):
..

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.