Use update_parser_common() in ShowNetwork

ShowNetwork inherits from NetworkAndComputeCommand. So we should use
update_parser_common() in it, not overwrite parent's get_parser().

Change-Id: I21bb1407962344b9800fd31caee4b2582674fe24
This commit is contained in:
Tang Chen 2016-02-23 19:00:14 +08:00
parent 02e5b6f41d
commit 07242fca3b

@ -319,8 +319,7 @@ class SetNetwork(command.Command):
class ShowNetwork(common.NetworkAndComputeShowOne): class ShowNetwork(common.NetworkAndComputeShowOne):
"""Show network details""" """Show network details"""
def get_parser(self, prog_name): def update_parser_common(self, parser):
parser = super(ShowNetwork, self).get_parser(prog_name)
parser.add_argument( parser.add_argument(
'network', 'network',
metavar="<network>", metavar="<network>",