winterhazel commented on code in PR #13897:
URL: https://github.com/apache/cloudstack/pull/13897#discussion_r4320894217


##########
server/src/main/java/com/cloud/storage/StorageManagerImpl.java:
##########
@@ -1265,10 +1265,18 @@ public PrimaryDataStoreInfo 
updateStoragePool(UpdateStoragePoolCmd cmd) throws I
         boolean changes = false;
         Long updatedCapacityBytes = null;
         Long capacityBytes = cmd.getCapacityBytes();
+        // retrieve current details and merge/overlay input to capture changes
+        Map<String, String> details = null;
+        details = _storagePoolDetailsDao.listDetailsKeyPairs(id);
+        if (inputDetails != null) {
+            details.putAll(inputDetails);
+            changes = true;
+        }
 
         if (capacityBytes != null) {
             if (capacityBytes != pool.getCapacityBytes()) {
                 updatedCapacityBytes = capacityBytes;
+                 details.put(PrimaryDataStoreLifeCycle.CAPACITY_BYTES, 
String.valueOf(updatedCapacityBytes));

Review Comment:
   ```suggestion
                   details.put(PrimaryDataStoreLifeCycle.CAPACITY_BYTES, 
String.valueOf(updatedCapacityBytes));
   ```
   Fixing the number of spaces here



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