CLOUDSTACK-8841: Storage XenMotion from XS 6.2 to XS 6.5 fails.

(cherry picked from commit 69647b38ce)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Priyank Parihar 2015-12-11 11:05:46 +05:30 committed by Rohit Yadav
parent 73c30f1baa
commit cdc9947d48
1 changed files with 2 additions and 2 deletions

View File

@ -4960,8 +4960,8 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
}
// Check if the source and destination hosts are of the same type and support storage motion.
if (!(srcHost.getHypervisorType().equals(destinationHost.getHypervisorType()) && srcHost.getHypervisorVersion().equals(destinationHost.getHypervisorVersion()))) {
throw new CloudRuntimeException("The source and destination hosts are not of the same type and version. " + "Source hypervisor type and version: "
if (!(srcHost.getHypervisorType().equals(destinationHost.getHypervisorType()))) {
throw new CloudRuntimeException("The source and destination hosts are not of the same type. " + "Source hypervisor type and version: "
+ srcHost.getHypervisorType().toString() + " " + srcHost.getHypervisorVersion() + ", Destination hypervisor type and version: "
+ destinationHost.getHypervisorType().toString() + " " + destinationHost.getHypervisorVersion());
}