This is an automated email from the ASF dual-hosted git repository. dahn pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push: new 91ab67c9522 Add logs to VMware instance configuration process (#9080) 91ab67c9522 is described below commit 91ab67c9522326217fdef34631d15c697a7c9de6 Author: Fabricio Duarte <fabricio.duarte...@gmail.com> AuthorDate: Thu Dec 12 09:26:56 2024 -0300 Add logs to VMware instance configuration process (#9080) Co-authored-by: Henrique Sato <henriquesato2...@gmail.com> --- .../main/java/com/cloud/hypervisor/vmware/mo/VirtualMachineMO.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vmware-base/src/main/java/com/cloud/hypervisor/vmware/mo/VirtualMachineMO.java b/vmware-base/src/main/java/com/cloud/hypervisor/vmware/mo/VirtualMachineMO.java index 5f73a42e3c6..a29e6d9668e 100644 --- a/vmware-base/src/main/java/com/cloud/hypervisor/vmware/mo/VirtualMachineMO.java +++ b/vmware-base/src/main/java/com/cloud/hypervisor/vmware/mo/VirtualMachineMO.java @@ -1185,6 +1185,7 @@ public class VirtualMachineMO extends BaseMO { } public boolean configureVm(VirtualMachineConfigSpec vmConfigSpec) throws Exception { + logger.debug("Reconfiguring virtual machine {} using spec {}.", this, GSON.toJson(vmConfigSpec)); ManagedObjectReference morTask = _context.getService().reconfigVMTask(_mor, vmConfigSpec); boolean result = _context.getVimClient().waitForTask(morTask); @@ -3841,4 +3842,9 @@ public class VirtualMachineMO extends BaseMO { logger.info("Removed property ChangeTrackPath from VMDK content file " + diskBackingInfo.getFileName()); } } + + @Override + public String toString() { + return ReflectionToStringBuilderUtils.reflectOnlySelectedFields(this, "internalCSName"); + } }