more debugging
This commit is contained in:
@@ -82,6 +82,7 @@ func (v *Vcenter) Login(vUrl string) error {
|
||||
}
|
||||
|
||||
func (v *Vcenter) Logout() error {
|
||||
v.Logger.Debug("vcenter logging out")
|
||||
return v.client.Logout(v.ctx)
|
||||
}
|
||||
|
||||
@@ -203,5 +204,6 @@ func (v *Vcenter) FindVMByIDWithDatacenter(vmID string, dcID string) (*VmPropert
|
||||
return nil, fmt.Errorf("failed to retrieve VM: %w", err)
|
||||
}
|
||||
|
||||
return nil, fmt.Errorf("VM with ID %s not found in any datacenter", vmID)
|
||||
v.Logger.Info("Unable to find vm in datacenter", "vm_id", vmID, "datacenter_id", dcID)
|
||||
return &VmProperties{}, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user