CLOUDSTACK-6350: IAM - Listing of VM using uuid when owner account of

this Vm is deleted results is VM not being returned.But list VM with
listAll=true is able to return this VM.
This commit is contained in:
Min Chen 2014-04-07 22:23:21 -07:00
parent f29e4e21eb
commit 3661e67fd1
1 changed files with 2 additions and 2 deletions

View File

@ -2231,8 +2231,8 @@ public class AccountManagerImpl extends ManagerBase implements AccountManager, M
owner = caller;
}
AccessType accessType = AccessType.UseEntry;
if (listAll) {
// listAll = true should show all resources that owner has ListEntry access type
if (listAll || id != null) {
// listAll = true or id given should show all resources that owner has ListEntry access type.
accessType = AccessType.ListEntry;
}
domainIdRecursiveListProject.third(Project.ListProjectResourcesCriteria.SkipProjectResources);