add @propery to format method

the method is overided and need to be a property

Change-Id: Ica6eda8fa0161e4865182420caa5c59671328c58
This commit is contained in:
Eyal 2017-03-16 10:29:40 +02:00
parent bbcf490edf
commit 4c4ef4ef69
3 changed files with 2 additions and 3 deletions

View File

@ -42,9 +42,6 @@ class EventPost(command.Command):
return parser
def formatter_default(self):
return 'json'
def take_action(self, parsed_args):
if not parsed_args.type:
raise exc.CommandException(

View File

@ -31,6 +31,7 @@ class RcaShow(show.ShowOne):
return parser
@property
def formatter_default(self):
return 'json'

View File

@ -49,6 +49,7 @@ class TopologyShow(show.ShowOne):
return parser
@property
def formatter_default(self):
return 'json'