summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
authorTang Chen <chen.tang@easystack.cn>2016-02-23 19:00:14 +0800
committerTang Chen <chen.tang@easystack.cn>2016-02-23 19:00:14 +0800
commit07242fca3bf7965fd18155a2b4dea54899f941aa (patch)
tree40741022253540662665a29d215991a9955d361f /openstackclient
parent02e5b6f41d2b5f026ce1f1f5b7026d5968a7c20f (diff)
downloadpython-openstackclient-07242fca3bf7965fd18155a2b4dea54899f941aa.tar.gz
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
Diffstat (limited to 'openstackclient')
-rw-r--r--openstackclient/network/v2/network.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/openstackclient/network/v2/network.py b/openstackclient/network/v2/network.py
index a634378f..fd7ab8fb 100644
--- a/openstackclient/network/v2/network.py
+++ b/openstackclient/network/v2/network.py
@@ -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>",