From 3661e67fd13c66ec7ec9547647bfc05296279196 Mon Sep 17 00:00:00 2001 From: Min Chen Date: Mon, 7 Apr 2014 22:23:21 -0700 Subject: [PATCH] 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. --- server/src/com/cloud/user/AccountManagerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/com/cloud/user/AccountManagerImpl.java b/server/src/com/cloud/user/AccountManagerImpl.java index 047f5475ced..0d4b72d4c5d 100755 --- a/server/src/com/cloud/user/AccountManagerImpl.java +++ b/server/src/com/cloud/user/AccountManagerImpl.java @@ -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);