Repository: cloudstack Updated Branches: refs/heads/4.4 563efad9a -> 59fa7a9c1
CLOUDSTACK-6436: list* api commands with forDisplay parameter - don't return resources with display=false by default. ForDisplay=false has to be explicitly specified in the command Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/59fa7a9c Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/59fa7a9c Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/59fa7a9c Branch: refs/heads/4.4 Commit: 59fa7a9c1b4f08a7c41f83e86426336c3052f935 Parents: 563efad Author: Alena Prokharchyk <alena.prokharc...@citrix.com> Authored: Thu Apr 17 13:50:24 2014 -0700 Committer: Alena Prokharchyk <alena.prokharc...@citrix.com> Committed: Thu Apr 17 13:50:24 2014 -0700 ---------------------------------------------------------------------- .../apache/cloudstack/api/BaseListAccountResourcesCmd.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/59fa7a9c/api/src/org/apache/cloudstack/api/BaseListAccountResourcesCmd.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/api/BaseListAccountResourcesCmd.java b/api/src/org/apache/cloudstack/api/BaseListAccountResourcesCmd.java index 63d2b7f..d494f64 100644 --- a/api/src/org/apache/cloudstack/api/BaseListAccountResourcesCmd.java +++ b/api/src/org/apache/cloudstack/api/BaseListAccountResourcesCmd.java @@ -16,9 +16,6 @@ // under the License. package org.apache.cloudstack.api; -import org.apache.cloudstack.context.CallContext; - -import com.cloud.user.Account; public abstract class BaseListAccountResourcesCmd extends BaseListDomainResourcesCmd { @@ -30,10 +27,6 @@ public abstract class BaseListAccountResourcesCmd extends BaseListDomainResource } public Boolean getDisplay() { - Account caller = CallContext.current().getCallingAccount(); - if (caller.getType() == Account.ACCOUNT_TYPE_NORMAL) { - return true; - } - return null; + return true; } }