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

(cherry picked from commit fc4dceaa99)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Saksham Srivastava 2014-10-22 13:53:41 +05:30 committed by Rohit Yadav
parent 31a6517402
commit 45108fdbad
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

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