shwstppr commented on a change in pull request #5170:
URL: https://github.com/apache/cloudstack/pull/5170#discussion_r663905949
##########
File path:
plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java
##########
@@ -7337,20 +7337,20 @@ private Answer execute(PrepareUnmanageVMInstanceCommand
cmd) {
if (targetHyperHost != null) {
ManagedObjectReference morTargetHostDc =
targetHyperHost.getHyperHostDatacenter();
if
(!morSourceHostDc.getValue().equalsIgnoreCase(morTargetHostDc.getValue())) {
- String msg = "VM " + vmName + " cannot be migrated between
different datacenter";
+ String msg = String.format("VM: %s cannot be migrated
between different datacenter", vmName);
Review comment:
@GutoVeronezi `VirtualMachineTO` is not always available. It is
available only in case when this method `relocateVirtualMachine` is called for
`MigrateWithStorageCommand` while it remains null for `MigrateVolume` and
`MigrateVmToPoolCommand`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]