mirror of https://github.com/apache/cloudstack.git
findbugs: wrapper object comparison (fixed)
This commit is contained in:
parent
8fe3c0b8ba
commit
fa56045665
|
|
@ -1768,7 +1768,7 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac
|
|||
// unregister the VM from the source host and cleanup the associated VM files.
|
||||
if (vm.getHypervisorType().equals(HypervisorType.VMware)) {
|
||||
final Long destClusterId = destPool.getClusterId();
|
||||
if (srcClusterId != null && destClusterId != null && srcClusterId != destClusterId) {
|
||||
if (srcClusterId != null && destClusterId != null && ! srcClusterId.equals(destClusterId)) {
|
||||
final String srcDcName = _clusterDetailsDao.getVmwareDcName(srcClusterId);
|
||||
final String destDcName = _clusterDetailsDao.getVmwareDcName(destClusterId);
|
||||
if (srcDcName != null && destDcName != null && !srcDcName.equals(destDcName)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue