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
When using the query_filters option and the serial filter, all virtual machines are returned due to serial not being a valid query filter (or field) for virtual machines. Netbox ignores invalid query parameters and returns all results matching the other (if any) filters.
Thanks @FragmentedPacket - totally forgot about this. Thank you for taking the time. I'll get our team to try it out and let you know if there are any wacky side effects. Looking at the code it seems like it'll do the trick.
Uh oh!
There was an error while loading. Please reload this page.
ISSUE TYPE
SUMMARY
When using the
query_filters
option and theserial
filter, all virtual machines are returned due toserial
not being a valid query filter (or field) for virtual machines. Netbox ignores invalid query parameters and returns all results matching the other (if any) filters.The offending line is here:
https://github.com/netbox-community/ansible_modules/blob/devel/plugins/inventory/netbox.py#L418
Some additional parsing of query parameters is needed to remove anything invalid for virtual-machines.
Original Ansible Core Issues:
ansible/ansible#57376
@tyler-8 was the original reporter.
STEPS TO REPRODUCE
EXPECTED RESULTS
One device returned in inventory
ACTUAL RESULTS
One device and one VM returned in inventory
The text was updated successfully, but these errors were encountered: