incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wid...@apache.org
Subject [28/58] [abbrv] git commit: refs/heads/qemu-img - CLOUDSTACK-1362: EC2 dns-name filter support for EC2 describeInstances API is broken
Date Fri, 22 Feb 2013 14:01:12 GMT
CLOUDSTACK-1362: EC2 dns-name filter support for EC2 describeInstances API is broken

Mapped CS UserVm 'name' propertyto the dns-name value to filter out the results.


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

Branch: refs/heads/qemu-img
Commit: d84a8601e532d3626349341694cfe68c8f053cb1
Parents: 6cc1123
Author: Prachi Damle <prachi@cloud.com>
Authored: Thu Feb 21 14:01:52 2013 -0800
Committer: Prachi Damle <prachi@cloud.com>
Committed: Thu Feb 21 14:01:52 2013 -0800

----------------------------------------------------------------------
 .../service/core/ec2/EC2InstanceFilterSet.java     |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/d84a8601/awsapi/src/com/cloud/bridge/service/core/ec2/EC2InstanceFilterSet.java
----------------------------------------------------------------------
diff --git a/awsapi/src/com/cloud/bridge/service/core/ec2/EC2InstanceFilterSet.java b/awsapi/src/com/cloud/bridge/service/core/ec2/EC2InstanceFilterSet.java
index e0aae73..b5b7c78 100644
--- a/awsapi/src/com/cloud/bridge/service/core/ec2/EC2InstanceFilterSet.java
+++ b/awsapi/src/com/cloud/bridge/service/core/ec2/EC2InstanceFilterSet.java
@@ -50,6 +50,7 @@ public class EC2InstanceFilterSet {
         filterTypes.put( "group-id",             "string"  );
         filterTypes.put( "tag-key",              "string"  );
         filterTypes.put( "tag-value",            "string"  );
+        filterTypes.put( "dns-name",             "string"  );
 	}
 	
 	
@@ -184,6 +185,8 @@ public class EC2InstanceFilterSet {
                 }
             }
             return false;
+        }else if (filterName.equalsIgnoreCase( "dns-name" )){
+            return containsString( vm.getName(), valueSet );
         }
 	    else return false;
 	}


Mime
View raw message