Add vCenter cache rebuild functionality and related API endpoint
continuous-integration/drone/push Build is passing

This commit is contained in:
nathan committed 2026-02-16 08:46:38 +11:00
1 parent 6fbd6bc9d2
commit bc84931c37
7 files changed
+425 -24

No files matched your search

+1 -1
View File
@@ -874,7 +874,7 @@ func (v *Vcenter) BuildResourcePoolLookup() (map[string]string, error) {
// Helper function to retrieve the full folder path for the VM
func (v *Vcenter) GetVMFolderPath(vm mo.VirtualMachine) (string, error) {
v.Logger.Debug("Commencing vm folder path search")
v.Logger.Debug("commencing vm folder path search", "vcenter", v.Vurl, "vm_id", vm.Reference().Value)
entities, err := mo.Ancestors(v.ctx, v.client.Client, v.client.ServiceContent.PropertyCollector, vm.Reference())
if err != nil {