Allow us to sort by all available datatypes

This commit is contained in:
Joel 2016-02-19 14:05:43 -06:00
parent 369806de25
commit 147b724f5d

View file

@ -83,7 +83,8 @@ options:
description: description:
- Optional attribute which with to sort the results. - Optional attribute which with to sort the results.
- If specifying 'tag', the 'tag_name' parameter is required. - If specifying 'tag', the 'tag_name' parameter is required.
choices: ['name', 'description', 'tag'] - Starting at version 2.1, additional sort choices of architecture, block_device_mapping, creationDate, hypervisor, is_public, location, owner_id, platform, root_device_name, root_device_type, state, and virtualization_type are supported.
choices: ['name', 'description', 'tag', 'architecture', 'block_device_mapping', 'creationDate', 'hypervisor', 'is_public', 'location', 'owner_id', 'platform', 'root_device_name', 'root_device_type', 'state', 'virtualization_type']
default: null default: null
required: false required: false
sort_tag: sort_tag:
@ -303,7 +304,7 @@ def main():
name = dict(required=False), name = dict(required=False),
platform = dict(required=False), platform = dict(required=False),
sort = dict(required=False, default=None, sort = dict(required=False, default=None,
choices=['name', 'description', 'tag']), choices=['name', 'description', 'tag', 'architecture', 'block_device_mapping', 'creationDate', 'hypervisor', 'is_public', 'location', 'owner_id', 'platform', 'root_device_name', 'root_device_type', 'state', 'virtualization_type']),
sort_tag = dict(required=False), sort_tag = dict(required=False),
sort_order = dict(required=False, default='ascending', sort_order = dict(required=False, default='ascending',
choices=['ascending', 'descending']), choices=['ascending', 'descending']),