Enabled magnum client to display detailed information
Enabled magnum client to display following information - disabled - disabled_reason - created_at - updated_at disabled field is not returned by the magnum server, but magnum server code will be modified for, bug #1607228. Server will be returning this field after fix of mentioned bug. Change-Id: I5bab76bf1fa476394c287ddc781f43bca2e5f035 Closes-bug: #1607234
This commit is contained in:
parent
bad0c1b07d
commit
41563dc162
@ -20,6 +20,8 @@ from magnumclient.common import utils as magnum_utils
|
||||
def do_service_list(cs, args):
|
||||
"""Print a list of magnum services."""
|
||||
mservices = cs.mservices.list()
|
||||
columns = ('id', 'host', 'binary', 'state')
|
||||
columns = ('id', 'host', 'binary', 'state', 'disabled',
|
||||
'disabled_reason', 'created_at', 'updated_at')
|
||||
|
||||
utils.print_list(mservices, columns,
|
||||
{'versions': magnum_utils.print_list_field('versions')})
|
||||
|
Loading…
Reference in New Issue
Block a user