Describe the bug
The --update-hypervisor flag was defined in config.py and its logic was implemented in server.py:442-443, but it was missing from the condition in cli.py:48-56 that triggers netbox_create_or_update().
This meant running netbox_agent --update-hypervisor would do nothing because the update method was never called.
Expected behavior
Running netbox_agent --update-hypervisor should update the hypervisor items.
Configuration file
Relevent section:
virtual:
enabled: false
hypervisor: True
cluster_name: cluster-pve
list_guests_cmd: |
pvesh get /cluster/resources --type vm --output-format json | jq -r '.[].name'
Environment:
- OS:
Debian GNU/Linux 13 (trixie)
- Netbox agent version
master
Additional context
Add any other context about the problem here.
Describe the bug
The
--update-hypervisorflag was defined in config.py and its logic was implemented in server.py:442-443, but it was missing from the condition in cli.py:48-56 that triggersnetbox_create_or_update().This meant running
netbox_agent --update-hypervisorwould do nothing because the update method was never called.Expected behavior
Running
netbox_agent --update-hypervisorshould update the hypervisor items.Configuration file
Relevent section:
Environment:
Debian GNU/Linux 13 (trixie)masterAdditional context
Add any other context about the problem here.