support names in DescribeKeyPairs
This commit is contained in:
parent
72ae98128c
commit
e19967b7d5
3 changed files with 27 additions and 2 deletions
|
|
@ -116,6 +116,15 @@ def filters_from_querystring(querystring_dict):
|
|||
return response_values
|
||||
|
||||
|
||||
def keypair_names_from_querystring(querystring_dict):
|
||||
keypair_names = []
|
||||
for key, value in querystring_dict.iteritems():
|
||||
if 'KeyName' in key:
|
||||
keypair_names.append(value[0])
|
||||
return keypair_names
|
||||
|
||||
|
||||
|
||||
filter_dict_attribute_mapping = {
|
||||
'instance-state-name': 'state'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue