CLOUDSTACK-7582: Update Storage Pool API does not update tags correctly

This commit is contained in:
Saksham Srivastava 2014-10-22 13:53:41 +05:30 committed by Rajesh Battala
parent 890f9eeb57
commit fc4dceaa99
2 changed files with 4 additions and 1 deletions

View File

@ -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);
}
}
}

View File

@ -799,7 +799,7 @@ public class StorageManagerImpl extends ManagerBase implements StorageManager, C
}
}
if (updatedDetails.size() > 0) {
if (updatedDetails.size() >= 0) {
_storagePoolDao.updateDetails(id, updatedDetails);
}