summaryrefslogtreecommitdiff
path: root/glanceclient/shell.py
diff options
context:
space:
mode:
authorLi Wei <wei.li@easystack.cn>2016-10-21 15:57:39 +0800
committerChangBo Guo(gcb) <glongwave@gmail.com>2016-12-06 09:35:55 +0000
commit4773c9667251043333d9c3e0c56e9d262186380d (patch)
tree95f5e0b88da2e6d7bd57672f668d2d76ab31a922 /glanceclient/shell.py
parent1505a47ff38a7bca50f32cd37002f50fa5561909 (diff)
downloadpython-glanceclient-4773c9667251043333d9c3e0c56e9d262186380d.tar.gz
Use import_versioned_module from oslo.utils
oslo.utils 3.17 provides this funtion, so just use it directly. Change-Id: I85cb78a6fd33a5b1f7e09648efed1b0737678eee Closes-Bug: #1627313
Diffstat (limited to 'glanceclient/shell.py')
-rw-r--r--glanceclient/shell.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/glanceclient/shell.py b/glanceclient/shell.py
index 51e02a6..2c5fb4b 100644
--- a/glanceclient/shell.py
+++ b/glanceclient/shell.py
@@ -211,7 +211,8 @@ class OpenStackImagesShell(object):
self.subcommands = {}
subparsers = parser.add_subparsers(metavar='<subcommand>')
- submodule = utils.import_versioned_module(version, 'shell')
+ submodule = importutils.import_versioned_module('glanceclient',
+ version, 'shell')
self._find_actions(subparsers, submodule)
self._find_actions(subparsers, self)