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



##########
File path: server/src/main/java/com/cloud/storage/StorageManagerImpl.java
##########
@@ -2331,6 +2336,17 @@ public ImageStore updateImageStoreStatus(Long id, 
Boolean readonly) {
         return imageStoreVO;
     }
 
+    @Override
+    public void syncHardwareCapability(long poolId) {
+        StoragePoolVO pool = _storagePoolDao.findById(poolId);
+        // find the host
+        List<StoragePoolHostVO> hosts = 
_storagePoolHostDao.listByPoolId(poolId);
+        if (hosts.size() > 0) {
+            StoragePoolHostVO host = hosts.get(0);
+            _agentMgr.easySend(host.getHostId(), new 
ModifyStoragePoolCommand(false, pool));

Review comment:
       can use separate cmd for storage capability ? 




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