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


##########
plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/guru/VMwareGuru.java:
##########
@@ -1070,6 +1073,22 @@ private boolean isInterClusterMigration(Long 
srcClusterId, Long destClusterId) {
         return srcClusterId != null && destClusterId != null && ! 
srcClusterId.equals(destClusterId);
     }
 
+    private String getHostGuidForLocalStorage(Map<Volume, StoragePool> 
volumeToPool) {
+        String hostGuidInTargetCluster = null;
+        for (Map.Entry<Volume, StoragePool> entry : volumeToPool.entrySet()) {

Review Comment:
   No point in iterating this volume map twice, keep the local pool id and use 
it instead.



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