mirror of
https://opendev.org/openstack/python-openstackclient.git
synced 2026-01-17 07:20:45 +00:00
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:
parent
02e5b6f41d
commit
07242fca3b
1 changed files with 1 additions and 2 deletions
|
|
@ -319,8 +319,7 @@ class SetNetwork(command.Command):
|
|||
class ShowNetwork(common.NetworkAndComputeShowOne):
|
||||
"""Show network details"""
|
||||
|
||||
def get_parser(self, prog_name):
|
||||
parser = super(ShowNetwork, self).get_parser(prog_name)
|
||||
def update_parser_common(self, parser):
|
||||
parser.add_argument(
|
||||
'network',
|
||||
metavar="<network>",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue