summaryrefslogtreecommitdiff
path: root/heatclient/client.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/client.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/client.py')
-rw-r--r--heatclient/client.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/heatclient/client.py b/heatclient/client.py
index 8237b8e..77444f4 100644
--- a/heatclient/client.py
+++ b/heatclient/client.py
@@ -10,10 +10,11 @@
# License for the specific language governing permissions and limitations
# under the License.
-from heatclient.common import utils
+from oslo_utils import importutils
def Client(version, *args, **kwargs):
- module = utils.import_versioned_module(version, 'client')
+ module = importutils.import_versioned_module('heatclient',
+ version, 'client')
client_class = getattr(module, 'Client')
return client_class(*args, **kwargs)