From aee7dcebe1f79876d6e0704249d68c0cc5e4e083 Mon Sep 17 00:00:00 2001
From: fmkiotheka <fmkiotheka@inf.ufpr.br>
Date: Wed, 14 Aug 2024 14:05:54 -0300
Subject: [PATCH] Allow failed nodes to exist

---
 netbox_proxmox_sync/api/proxmox/extract.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/netbox_proxmox_sync/api/proxmox/extract.py b/netbox_proxmox_sync/api/proxmox/extract.py
index 3459070..e0110a7 100644
--- a/netbox_proxmox_sync/api/proxmox/extract.py
+++ b/netbox_proxmox_sync/api/proxmox/extract.py
@@ -105,7 +105,7 @@ class Proxmox:
             try:
                 node_vms = PX_API.nodes(node_name).qemu.get()
             except Exception:
-                raise APIError('Failed to connect to Proxmox Cluster!')
+                continue
             for vm_status in node_vms:
                 # If the update runs as the VM is being cloned the vm_config will be
                 # messed up and our update will fail.
-- 
GitLab