Make deleted_time show conditional
This commit is contained in:
parent
8f3600c7ed
commit
b56fb2577e
@ -505,7 +505,7 @@ def do_node_list(sc, args):
|
||||
'''Show list of nodes.'''
|
||||
|
||||
fields = ['id', 'name', 'status', 'cluster_id', 'physical_id',
|
||||
'profile_name', 'created_time', 'updated_time', 'deleted_time']
|
||||
'profile_name', 'created_time', 'updated_time']
|
||||
|
||||
queries = {
|
||||
'show_deleted': args.show_deleted,
|
||||
@ -517,6 +517,9 @@ def do_node_list(sc, args):
|
||||
'marker': args.marker,
|
||||
}
|
||||
|
||||
if args.show_deleted:
|
||||
fields.append('deleted_time')
|
||||
|
||||
nodes = sc.list(models.Node, **queries)
|
||||
utils.print_list(nodes, fields, sortby_index=5)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user