You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mu...@apache.org on 2013/03/18 11:14:49 UTC
[10/50] [abbrv] git commit: refs/heads/gslb-wip - CLOUDSTACK-1574:
updateResourceCount API is failed saying to specify valida resource type even
after parsing the valid resource type.
CLOUDSTACK-1574: updateResourceCount API is failed saying to specify valida resource type even after parsing the valid resource type.
Signed-off-by: Sateesh Chodapuneedi <sa...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/9b288c75
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/9b288c75
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/9b288c75
Branch: refs/heads/gslb-wip
Commit: 9b288c758b0dbe288b197e4ea85d801fc7cc2217
Parents: 344ad7a
Author: Sanjay Tripathi <sa...@citrix.com>
Authored: Thu Mar 7 16:51:46 2013 +0530
Committer: Sateesh Chodapuneedi <sa...@apache.org>
Committed: Thu Mar 7 11:43:39 2013 +0530
----------------------------------------------------------------------
.../resourcelimit/ResourceLimitManagerImpl.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/9b288c75/server/src/com/cloud/resourcelimit/ResourceLimitManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/resourcelimit/ResourceLimitManagerImpl.java b/server/src/com/cloud/resourcelimit/ResourceLimitManagerImpl.java
index 7ff06af..23c0796 100755
--- a/server/src/com/cloud/resourcelimit/ResourceLimitManagerImpl.java
+++ b/server/src/com/cloud/resourcelimit/ResourceLimitManagerImpl.java
@@ -628,7 +628,7 @@ public class ResourceLimitManagerImpl extends ManagerBase implements ResourceLim
ResourceType resourceType = null;
if (typeId != null) {
- for (ResourceType type : resourceTypes) {
+ for (ResourceType type : Resource.ResourceType.values()) {
if (type.getOrdinal() == typeId.intValue()) {
resourceType = type;
}