mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7582: Update Storage Pool API does not update tags correctly
This commit is contained in:
parent
890f9eeb57
commit
fc4dceaa99
|
|
@ -435,6 +435,9 @@ public class PrimaryDataStoreDaoImpl extends GenericDaoBase<StoragePoolVO, Long>
|
|||
detailsVO.add(new StoragePoolDetailVO(poolId, key, details.get(key), true));
|
||||
}
|
||||
_detailsDao.saveDetails(detailsVO);
|
||||
if(details.size() == 0) {
|
||||
_detailsDao.removeDetails(poolId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -799,7 +799,7 @@ public class StorageManagerImpl extends ManagerBase implements StorageManager, C
|
|||
}
|
||||
}
|
||||
|
||||
if (updatedDetails.size() > 0) {
|
||||
if (updatedDetails.size() >= 0) {
|
||||
_storagePoolDao.updateDetails(id, updatedDetails);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue