Skip to content

Commit

Permalink
fix(vmware): allow deletion of VirtualDisk
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Mar 4, 2025
1 parent 1f9982e commit 53aca76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/netbox/inventory/delete_items.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ func (nbi *NetboxInventory) softDelete(orphanItem objects.OrphanItem) error {
_, err = service.Patch[objects.WirelessLANGroup](nbi.OrphanManager.Ctx, nbi.NetboxAPI, orphanItem.GetID(), diffMap)
case *objects.MACAddress:
_, err = service.Patch[objects.MACAddress](nbi.OrphanManager.Ctx, nbi.NetboxAPI, orphanItem.GetID(), diffMap)
case *objects.VirtualDisk:
_, err = service.Patch[objects.VirtualDisk](nbi.OrphanManager.Ctx, nbi.NetboxAPI, orphanItem.GetID(), diffMap)
default:
return fmt.Errorf("unsupported type for orphan item%T", orphanItem)
}
Expand Down

0 comments on commit 53aca76

Please sign in to comment.