Display tenant id with nova list --all-tenants
For each server, nova list --all-tenants will now display its corresponding tenant ID as well. Change-Id: I586d6c5bbb15ebb5df25dc4fa849ac4d5af149e9 Closes-bug: #1403431
This commit is contained in:
parent
e422109eb3
commit
5f154636c2
@ -1396,6 +1396,10 @@ def do_list(cs, args):
|
||||
'Power State',
|
||||
'Networks'
|
||||
]
|
||||
# If getting the data for all tenants, print
|
||||
# Tenant ID as well
|
||||
if search_opts['all_tenants']:
|
||||
columns.insert(2, 'Tenant ID')
|
||||
formatters['Networks'] = utils._format_servers_list_networks
|
||||
sortby_index = 1
|
||||
if args.sort:
|
||||
|
Loading…
x
Reference in New Issue
Block a user