VirtualMachine filter form does not properly filter Roles on VM Role attribute #3014
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Environment
Steps to Reproduce
VM Role = True
and one toVM Role = False
Role
.Expected Behavior
Only one role should be visible as there is filtering for
vm_role=True
in the queryset.Observed Behavior
Both DeviceRoles is visible in the dropdown menu.
Solution
Change
"vm_role": "true"
to"vm_role": "True"
at the following three locations.VirtualMachineForm :
https://github.com/digitalocean/netbox/blob/develop/netbox/virtualization/forms.py#L351
VirtualMachineFilterForm :
https://github.com/digitalocean/netbox/blob/develop/netbox/virtualization/forms.py#L585
VirtualMachineBullkEditForm :
https://github.com/digitalocean/netbox/blob/develop/netbox/virtualization/forms.py#L483
The text was updated successfully, but these errors were encountered: