@@ -1285,28 +1285,28 @@ public PrimaryDataStoreInfo updateStoragePool(UpdateStoragePoolCmd cmd) throws I
12851285 changes = true ;
12861286 }
12871287
1288- if (changes ) {
1289- DataStoreProvider dataStoreProvider = _dataStoreProviderMgr .getDataStoreProvider (pool .getStorageProviderName ());
1290- DataStoreLifeCycle dataStoreLifeCycle = dataStoreProvider .getDataStoreLifeCycle ();
1291- if (dataStoreLifeCycle instanceof PrimaryDataStoreLifeCycle ) {
1292- if (updatedCapacityBytes != null ) {
1293- details .put (PrimaryDataStoreLifeCycle .CAPACITY_BYTES , String .valueOf (updatedCapacityBytes ));
1294- pool .setCapacityBytes (updatedCapacityBytes );
1295- }
1296- if (updatedCapacityIops != null ) {
1297- details .put (PrimaryDataStoreLifeCycle .CAPACITY_IOPS , String .valueOf (updatedCapacityIops ));
1298- pool .setCapacityIops (updatedCapacityIops );
1299- }
1300- if (cmd .getUrl () != null ) {
1301- details .put ("url" , cmd .getUrl ());
1302- }
1303- ((PrimaryDataStoreLifeCycle )dataStoreLifeCycle ).updateStoragePool (pool , details );
1304- _storagePoolDao .update (id , pool );
1305- _storagePoolDao .updateDetails (id , details );
1306- }
1307- }
1308- return (PrimaryDataStoreInfo )_dataStoreMgr .getDataStore (pool .getId (), DataStoreRole .Primary );
1309- }
1288+ if (changes ) {
1289+ DataStoreProvider dataStoreProvider = _dataStoreProviderMgr .getDataStoreProvider (pool .getStorageProviderName ());
1290+ DataStoreLifeCycle dataStoreLifeCycle = dataStoreProvider .getDataStoreLifeCycle ();
1291+ if (dataStoreLifeCycle instanceof PrimaryDataStoreLifeCycle ) {
1292+ if (updatedCapacityBytes != null ) {
1293+ details .put (PrimaryDataStoreLifeCycle .CAPACITY_BYTES , String .valueOf (updatedCapacityBytes ));
1294+ pool .setCapacityBytes (updatedCapacityBytes );
1295+ }
1296+ if (updatedCapacityIops != null ) {
1297+ details .put (PrimaryDataStoreLifeCycle .CAPACITY_IOPS , String .valueOf (updatedCapacityIops ));
1298+ pool .setCapacityIops (updatedCapacityIops );
1299+ }
1300+ if (cmd .getUrl () != null ) {
1301+ details .put ("url" , cmd .getUrl ());
1302+ }
1303+ ((PrimaryDataStoreLifeCycle )dataStoreLifeCycle ).updateStoragePool (pool , details );
1304+ _storagePoolDao .update (id , pool );
1305+ _storagePoolDao .updateDetails (id , details );
1306+ }
1307+ }
1308+ return (PrimaryDataStoreInfo )_dataStoreMgr .getDataStore (pool .getId (), DataStoreRole .Primary );
1309+ }
13101310
13111311 private void changeStoragePoolScopeToZone (StoragePoolVO primaryStorage ) {
13121312 /*
0 commit comments