summaryrefslogtreecommitdiff
path: root/heatclient/shell.py
diff options
context:
space:
mode:
authorshizhihui <zhihui.shi@easystack.cn>2016-11-02 16:09:48 +0800
committershizhihui <zhihui.shi@easystack.cn>2016-11-09 09:07:39 +0000
commit8885ce78189ac2239ec0400f6fec734627bf1218 (patch)
tree539f9bf8171436a4406f580cd17d03ea26c741c9 /heatclient/shell.py
parent61794b78220a556cb110d1c948e6eedd55f224c0 (diff)
downloadpython-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/shell.py')
-rw-r--r--heatclient/shell.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/heatclient/shell.py b/heatclient/shell.py
index 558fb8a..be9cf4e 100644
--- a/heatclient/shell.py
+++ b/heatclient/shell.py
@@ -348,7 +348,8 @@ class HeatShell(object):
self.subcommands = {}
subparsers = parser.add_subparsers(metavar='<subcommand>')
- submodule = utils.import_versioned_module(version, 'shell')
+ submodule = importutils.import_versioned_module('heatclient',
+ version, 'shell')
self._find_actions(subparsers, submodule)
self._find_actions(subparsers, self)
self._add_bash_completion_subparser(subparsers)