From ad93403cbb9f9b600282e55422cda9cd940094f9 Mon Sep 17 00:00:00 2001 From: "Marcus V." <mvrp21@inf.ufpr.br> Date: Mon, 10 Jun 2024 09:12:32 -0300 Subject: [PATCH] fix: problem when updating vm tags Signed-off-by: Marcus V. <mvrp21@inf.ufpr.br> --- netbox_proxmox_sync/api/proxmox/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox_proxmox_sync/api/proxmox/update.py b/netbox_proxmox_sync/api/proxmox/update.py index ef19301..9892f87 100644 --- a/netbox_proxmox_sync/api/proxmox/update.py +++ b/netbox_proxmox_sync/api/proxmox/update.py @@ -97,8 +97,8 @@ def update_old_vms(old_vms, new_vms): old_tags = set([tag['name'] for tag in old_vms[name][key]]) new_tags = set([tag['name'] for tag in new_vms[name][key]]) # Reattribute tags + old_vms[name][key] = new_vms[name][key] if old_tags != new_tags: - old_vms[name][key] = new_vms[name][key] something_changed = True # General case: value for key is different means it changed elif old_vms[name][key] != new_vms[name][key]: -- GitLab