make cliff return data as json
Implements: blueprint vitrage-cli Change-Id: I6cfb2f229764bdc4d377a3cc9fb67cccc2b7302c
This commit is contained in:
parent
d4f75a8254
commit
2128549d7b
@ -15,6 +15,10 @@ from cliff import show
|
||||
|
||||
# noinspection PyAbstractClass
|
||||
class TopologyShow(show.ShowOne):
|
||||
|
||||
def formatter_default(self):
|
||||
return "json"
|
||||
|
||||
def take_action(self, parsed_args):
|
||||
topology = self.app.client.topology.get()
|
||||
return self.dict2columns(topology)
|
||||
|
Loading…
x
Reference in New Issue
Block a user