mirror of https://github.com/apache/cloudstack.git
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:
parent
3d072b0d02
commit
0233bc88ba
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue