mirror of https://github.com/apache/cloudstack.git
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.
This commit is contained in:
parent
6cc1123a3e
commit
d84a8601e5
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue