Skip to content

Commit 9e94563

Browse files
n-rodriguezsrc-csm
authored andcommitted
fix(vmware): allow deletion of VirtualDisk (#520)
* chore(k8s): Replace version in k8s manifests * fix(vmware): allow deletion of VirtualDisk --------- Co-authored-by: src-csm <[email protected]>
1 parent b4009ae commit 9e94563

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/netbox/inventory/delete_items.go

+2
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ func (nbi *NetboxInventory) softDelete(orphanItem objects.OrphanItem) error {
130130
_, err = service.Patch[objects.WirelessLANGroup](nbi.OrphanManager.Ctx, nbi.NetboxAPI, orphanItem.GetID(), diffMap)
131131
case *objects.MACAddress:
132132
_, err = service.Patch[objects.MACAddress](nbi.OrphanManager.Ctx, nbi.NetboxAPI, orphanItem.GetID(), diffMap)
133+
case *objects.VirtualDisk:
134+
_, err = service.Patch[objects.VirtualDisk](nbi.OrphanManager.Ctx, nbi.NetboxAPI, orphanItem.GetID(), diffMap)
133135
default:
134136
return fmt.Errorf("unsupported type for orphan item%T", orphanItem)
135137
}

0 commit comments

Comments
 (0)