Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

change image list and network list data

to be sorted by name rather than UUID

Change-Id: I3a0faa56dbb85c916c93b5065bda90f99bb3937c
  • Loading branch information...
commit cefd0fc80e2c52f86b5196bf202b9ac0f94d5866 1 parent c41f5f6
@jmeredith jmeredith authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 novaclient/v1_1/shell.py
View
5 novaclient/v1_1/shell.py
@@ -384,7 +384,8 @@ def parse_server_name(image):
return ''
fmts = {'Server': parse_server_name}
- utils.print_list(image_list, ['ID', 'Name', 'Status', 'Server'], fmts)
+ utils.print_list(image_list, ['ID', 'Name', 'Status', 'Server'],
+ fmts, sortby_index=1)
@utils.arg('image',
@@ -553,7 +554,7 @@ def do_list(cs, args):
columns = [id_col, 'Name', 'Status', 'Networks']
formatters = {'Networks': utils._format_servers_list_networks}
utils.print_list(cs.servers.list(search_opts=search_opts), columns,
- formatters)
+ formatters, sortby_index=1)
@utils.arg('--hard',

0 comments on commit cefd0fc

Please sign in to comment.
Something went wrong with that request. Please try again.