Fix import of ironicclient and reformat docstring
Fix import of ironicclient to ironicclient/shell.py. Reformat docstring in ironicclient/v1/shell.py. Change-Id: Iad717d139ef423bb9f93050c6ba0c20fe1912a82
This commit is contained in:
parent
2a36c060bf
commit
11eae85a31
@ -26,7 +26,6 @@ from oslo_utils import encodeutils
|
||||
import six
|
||||
|
||||
import ironicclient
|
||||
from ironicclient import client as iroclient
|
||||
from ironicclient.common import cliutils
|
||||
from ironicclient.common import http
|
||||
from ironicclient.common.i18n import _
|
||||
@ -381,7 +380,7 @@ class IronicShell(object):
|
||||
for key in client_args:
|
||||
kwargs[key] = getattr(args, key)
|
||||
kwargs['os_ironic_api_version'] = os_ironic_api_version
|
||||
client = iroclient.get_client(api_major_version, **kwargs)
|
||||
client = ironicclient.client.get_client(api_major_version, **kwargs)
|
||||
|
||||
try:
|
||||
args.func(client, args)
|
||||
|
@ -33,8 +33,9 @@ def enhance_parser(parser, subparsers, cmd_mapper):
|
||||
Take a basic (nonversioned) parser and enhance it with
|
||||
commands and options specific for this version of API.
|
||||
|
||||
:param parser: top level parser :param subparsers: top level
|
||||
parser's subparsers collection where subcommands will go
|
||||
:param parser: top level parser
|
||||
:param subparsers: top level parser's subparsers collection
|
||||
where subcommands will go
|
||||
"""
|
||||
for command_module in COMMAND_MODULES:
|
||||
utils.define_commands_from_module(subparsers, command_module,
|
||||
|
Loading…
x
Reference in New Issue
Block a user