cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alena1...@apache.org
Subject git commit: updated refs/heads/master to 664e5e3
Date Thu, 17 Apr 2014 20:58:27 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master b3f18e7d7 -> 664e5e319


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/664e5e31
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/664e5e31
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/664e5e31

Branch: refs/heads/master
Commit: 664e5e3190efc78dc564cccde7fabfe2a079d496
Parents: b3f18e7
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Authored: Thu Apr 17 13:50:24 2014 -0700
Committer: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Committed: Thu Apr 17 13:51:30 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/664e5e31/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;
     }
 }


Mime
View raw message