sandeeplocharla commented on code in PR #14523:
URL: https://github.com/apache/cloudstack/pull/14523#discussion_r4450380001


##########
plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/lifecycle/OntapPrimaryDatastoreLifecycle.java:
##########
@@ -551,7 +551,34 @@ public boolean migrateToObjectStore(DataStore store) {
 
     @Override
     public void updateStoragePool(StoragePool storagePool, Map<String, String> 
details) {
+        String newCapacityStr = 
details.get(PrimaryDataStoreLifeCycle.CAPACITY_BYTES);
+        if (newCapacityStr == null) {
+            logger.debug("No capacity change requested for pool: {}, skipping 
FlexVolume resize", storagePool.getName());
+            return;
+        }
+
+        long currentCapacityBytes = storagePool.getCapacityBytes();

Review Comment:
   As discussed, it's better to have such validations in the UI. In order to 
not mix the scope, will take it up in subsequent PR.



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