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



##########
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:
       I have removed using the ModifyStoragePool command




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