Skip to content

Commit

Permalink
fix: log sync errors
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Feb 26, 2025
1 parent ee9b4fd commit bf80ec6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/netbox/inventory/add_items.go
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,7 @@ func (nbi *NetboxInventory) AddVM(ctx context.Context, newVM *objects.VM) (*obje
)
patchedVM, err := service.Patch[objects.VM](ctx, nbi.NetboxAPI, oldVM.ID, diffMap)
if err != nil {
nbi.Logger.Errorf(ctx, "Error while patching %s : %s", newVM.Name, err)
return nil, err
}
nbi.vmsIndexByNameAndClusterID[newVM.Name][newVMClusterID] = patchedVM
Expand Down

0 comments on commit bf80ec6

Please sign in to comment.