Skip to content

Commit c7db33f

Browse files
committedMay 28, 2024
fix(proxmox): don't crash when ip is not correctly added
1 parent aa2087d commit c7db33f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎internal/source/proxmox/proxmox_sync.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ func (ps *ProxmoxSource) syncVMNetworks(nbi *inventory.NetboxInventory, nbVM *ob
247247
Status: &objects.IPAddressStatusActive, //TODO: this is hardcoded
248248
})
249249
if err != nil {
250-
return fmt.Errorf("add ip address: %s", err)
250+
ps.Logger.Warningf(ps.Ctx, "add ip address: %s", err)
251+
continue
251252
}
252253
switch ipAddress.IPAddressType {
253254
case "ipv4":

0 commit comments

Comments
 (0)