You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The existing virtual chassis is queried by the master parameter and updated to the new name.
Observed Behavior
Fails with this error:
The full traceback is:
File "/tmp/ansible_netbox.netbox.netbox_virtual_chassis_payload_79usucxd/ansible_netbox.netbox.netbox_virtual_chassis_payload.zip/ansible_collections/netbox/netbox/plugins/module_utils/netbox_utils.py", line 795, in _nb_endpoint_get
response = nb_endpoint.get(**query_params)
File "/home/ubuntu/netbox-test/.venv/lib/python3.10/site-packages/pynetbox/core/endpoint.py", line 162, in get
ret = next(resp, None)
File "/home/ubuntu/netbox-test/.venv/lib/python3.10/site-packages/pynetbox/core/response.py", line 128, in __next__
next(self.response), self.endpoint.api, self.endpoint
File "/home/ubuntu/netbox-test/.venv/lib/python3.10/site-packages/pynetbox/core/query.py", line 292, in get
req = self._make_call(add_params=add_params)
File "/home/ubuntu/netbox-test/.venv/lib/python3.10/site-packages/pynetbox/core/query.py", line 259, in _make_call
raise RequestError(req)
fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"cert": null,
"data": {
"comments": null,
"custom_fields": null,
"description": null,
"domain": null,
"master": "mastername",
"name": "chassisname",
"tags": null
},
"netbox_token": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"netbox_url": "<redacted>",
"query_params": [
"master"
],
"state": "present",
"validate_certs": true
}
},
"msg": "{\"master\":[\"Select a valid choice. 193 is not one of the available choices.\"]}"
}
So it converts the master name into its id (192) but then fails to work with that.
The text was updated successfully, but these errors were encountered:
Ansible NetBox Collection version
3.19.1
Ansible version
NetBox version
v4.0.6
Python version
3.10
Steps to Reproduce
I want to rename a chassis and therefore cannot use the name parameter to search for it.
I set
query_params
to "master".Playbook file:
Expected Behavior
The existing virtual chassis is queried by the master parameter and updated to the new name.
Observed Behavior
Fails with this error:
So it converts the master name into its id (192) but then fails to work with that.
The text was updated successfully, but these errors were encountered: