From 0c63e299bd0ff1493c05e76a4cfdb0e4753cb7cb Mon Sep 17 00:00:00 2001 From: shbatm Date: Mon, 19 Jan 2026 16:19:59 -0600 Subject: [PATCH] Fix --update-hypervisor flag not triggering updates The --update-hypervisor flag was defined in config.py and checked in server.py, but was missing from the condition in cli.py that triggers netbox_create_or_update(). This meant running with --update-hypervisor alone would do nothing. Added config.update_hypervisor to the condition at cli.py line 48-56 so that the flag now properly triggers the hypervisor update logic in server.py. Co-Authored-By: Claude Sonnet 4.5 --- netbox_agent/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/netbox_agent/cli.py b/netbox_agent/cli.py index f277533e..a24ae89d 100644 --- a/netbox_agent/cli.py +++ b/netbox_agent/cli.py @@ -52,6 +52,7 @@ def run(config): or config.update_location or config.update_inventory or config.update_psu + or config.update_hypervisor ): server.netbox_create_or_update(config) if config.debug: