CLOUDSTACK-6458: IAM - When a domain is deleted , the group created for this domian is not removed.

Changes:
- When domain is deleted, IAM service will not find it unless it selects using 'removed' column
This commit is contained in:
Prachi Damle 2014-04-24 12:42:40 -07:00 committed by Daan Hoogland
parent 3d072b0d02
commit 0233bc88ba
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ public class IAMApiServiceImpl extends ManagerBase implements IAMApiService, Man
Long domainId = ((Long) obj);
if (domainId != null) {
s_logger.debug("MessageBus message: Domain removed: " + domainId + ", removing the domain group");
Domain domain = _domainDao.findById(domainId);
Domain domain = _domainDao.findByIdIncludingRemoved(domainId);
List<IAMGroup> groups = listDomainGroup(domain);
for (IAMGroup group : groups) {
_iamSrv.deleteIAMGroup(group.getId());