cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chipchild...@apache.org
Subject [1/3] git commit: refs/heads/4.1 - CLOUDSTACK-1574 : updateResourceCount API is failed saying to specify valida resource type even after parsing the valid resource type.
Date Fri, 08 Mar 2013 15:23:52 GMT
CLOUDSTACK-1574 : updateResourceCount API is failed saying to specify valida resource type
even after parsing the valid resource type.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/fd7f4103
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/fd7f4103
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/fd7f4103

Branch: refs/heads/4.1
Commit: fd7f4103fe987ae718bb3066d564c3fa48c0a4c3
Parents: 48bc393
Author: Sanjay Tripathi <sanjay.tripathi@citrix.com>
Authored: Fri Mar 8 10:42:48 2013 +0530
Committer: Chip Childers <chip.childers@gmail.com>
Committed: Fri Mar 8 10:14:03 2013 -0500

----------------------------------------------------------------------
 .../resourcelimit/ResourceLimitManagerImpl.java    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/fd7f4103/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 7419690..0f75e8d 100755
--- a/server/src/com/cloud/resourcelimit/ResourceLimitManagerImpl.java
+++ b/server/src/com/cloud/resourcelimit/ResourceLimitManagerImpl.java
@@ -613,7 +613,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;
                 }


Mime
View raw message