sureshanaparti commented on a change in pull request #4640:
URL: https://github.com/apache/cloudstack/pull/4640#discussion_r569182576



##########
File path: 
plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java
##########
@@ -5244,6 +5246,16 @@ protected Answer execute(ModifyStoragePoolCommand cmd) {
                 answer.setLocalDatastoreName(morDatastore.getValue());
             }
 
+            HostMO host = (HostMO) hyperHost;
+            boolean hardwareAccelerationSupportForDataStore = 
getHardwareAcceleationSupportForDataStore(host.getMor(), dsMo.getName());
+            StoragePoolInfo poolInfo = answer.getPoolInfo();
+            Map<String, String> poolDetails = poolInfo.getDetails();
+            if (poolDetails == null) {
+                poolDetails = new HashMap<>();
+            }
+            poolDetails.put("hardwareAccelerationSupported", 
String.valueOf(hardwareAccelerationSupportForDataStore));
+            poolInfo.setDetails(poolDetails);

Review comment:
       is it required to sent these details in ModifyStoragePoolAnswer ?




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to