diff options
author | shizhihui <zhihui.shi@easystack.cn> | 2016-11-02 16:09:48 +0800 |
---|---|---|
committer | shizhihui <zhihui.shi@easystack.cn> | 2016-11-09 09:07:39 +0000 |
commit | 8885ce78189ac2239ec0400f6fec734627bf1218 (patch) | |
tree | 539f9bf8171436a4406f580cd17d03ea26c741c9 /heatclient/common | |
parent | 61794b78220a556cb110d1c948e6eedd55f224c0 (diff) | |
download | python-heatclient-8885ce78189ac2239ec0400f6fec734627bf1218.tar.gz |
Make method import_versioned_module work
Oslo.utils 3.17 provides similar function, just use it.
For more information:
[1] http://docs.openstack.org/developer/oslo.utils/history.html
Closes-Bug: #1627313
Change-Id: Ie738e910cc72535fe97295d7e118eda2412ecd15
Diffstat (limited to 'heatclient/common')
-rw-r--r-- | heatclient/common/utils.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/heatclient/common/utils.py b/heatclient/common/utils.py index 91410ac..dfc8378 100644 --- a/heatclient/common/utils.py +++ b/heatclient/common/utils.py @@ -21,7 +21,6 @@ import uuid from oslo_serialization import jsonutils from oslo_utils import encodeutils -from oslo_utils import importutils import prettytable import six from six.moves.urllib import error @@ -239,13 +238,6 @@ def find_resource(manager, name_or_id): raise exc.CommandError(msg) -def import_versioned_module(version, submodule=None): - module = 'heatclient.v%s' % version - if submodule: - module = '.'.join((module, submodule)) - return importutils.import_module(module) - - def format_parameters(params, parse_semicolon=True): '''Reformat parameters into dict of format expected by the API.''' |