Merge "Add doc params to run and register_cli_opts"
This commit is contained in:
commit
b7b4cf2b8e
@ -146,6 +146,9 @@ def register_cli_options(conf, upgrade_command):
|
|||||||
|
|
||||||
Adds a subcommand to support 'upgrade check' on the command line.
|
Adds a subcommand to support 'upgrade check' on the command line.
|
||||||
|
|
||||||
|
:param conf: An oslo.confg ConfigOpts instance on which to register the
|
||||||
|
upgrade check arguments.
|
||||||
|
:param upgrade_command: The UpgradeCommands instance.
|
||||||
"""
|
"""
|
||||||
def add_parsers(subparsers):
|
def add_parsers(subparsers):
|
||||||
upgrade_action = subparsers.add_parser('upgrade')
|
upgrade_action = subparsers.add_parser('upgrade')
|
||||||
@ -157,7 +160,11 @@ def register_cli_options(conf, upgrade_command):
|
|||||||
|
|
||||||
|
|
||||||
def run(conf):
|
def run(conf):
|
||||||
"""Run the requested command."""
|
"""Run the requested command.
|
||||||
|
|
||||||
|
:param conf: An oslo.confg ConfigOpts instance on which the upgrade
|
||||||
|
commands have been previously registered.
|
||||||
|
"""
|
||||||
try:
|
try:
|
||||||
return conf.command.action_fn()
|
return conf.command.action_fn()
|
||||||
except Exception:
|
except Exception:
|
||||||
|
Loading…
Reference in New Issue
Block a user