Skip to content

Commit

Permalink
fix(vmware): allow deletion of VirtualDisk (#520)
Browse files Browse the repository at this point in the history
* chore(k8s): Replace version in k8s manifests

* fix(vmware): allow deletion of VirtualDisk

---------

Co-authored-by: src-csm <[email protected]>
  • Loading branch information
n-rodriguez and src-csm authored Mar 5, 2025
1 parent 72f5322 commit 831b281
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 831b281

Please sign in to comment.