Skip to content

Commit

Permalink
fix(proxmox): don't crash when ip is not correctly added
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4ko committed May 28, 2024
1 parent aa2087d commit c7db33f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/source/proxmox/proxmox_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ func (ps *ProxmoxSource) syncVMNetworks(nbi *inventory.NetboxInventory, nbVM *ob
Status: &objects.IPAddressStatusActive, //TODO: this is hardcoded
})
if err != nil {
return fmt.Errorf("add ip address: %s", err)
ps.Logger.Warningf(ps.Ctx, "add ip address: %s", err)
continue
}
switch ipAddress.IPAddressType {
case "ipv4":
Expand Down

0 comments on commit c7db33f

Please sign in to comment.