Skip to content

[BUG] --update-hypervisor flag not triggering updates #400

Description

@shbatm

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions