sureshanaparti commented on code in PR #9222:
URL: https://github.com/apache/cloudstack/pull/9222#discussion_r1650525580


##########
engine/storage/datamotion/src/main/java/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategy.java:
##########
@@ -2376,7 +2376,8 @@ protected void verifyLiveMigrationForKVM(Map<VolumeInfo, 
DataStore> volumeDataSt
                 throw new CloudRuntimeException("Destination storage pool with 
ID " + dataStore.getId() + " was not located.");
             }
 
-            if (srcStoragePoolVO.isManaged() && srcStoragePoolVO.getId() != 
destStoragePoolVO.getId()) {
+            boolean isPowerFlex = 
srcStoragePoolVO.getPoolType().equals(Storage.StoragePoolType.PowerFlex) && 
destStoragePoolVO.getPoolType().equals(Storage.StoragePoolType.PowerFlex);

Review Comment:
   ```suggestion
               boolean isSrcAndDestPoolPowerFlexStorage = 
srcStoragePoolVO.getPoolType().equals(Storage.StoragePoolType.PowerFlex) && 
destStoragePoolVO.getPoolType().equals(Storage.StoragePoolType.PowerFlex);
   ```



-- 
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]

Reply via email to