sandeeplocharla commented on code in PR #13897:
URL: https://github.com/apache/cloudstack/pull/13897#discussion_r4338930273
##########
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:
Will take this up in the next diff.
--
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]