diff options
| author | Luong Anh Tuan <tuanla@vn.fujitsu.com> | 2016-11-02 16:56:05 +0700 |
|---|---|---|
| committer | Tuan Luong-Anh <tuanla@vn.fujitsu.com> | 2016-11-03 10:08:57 +0000 |
| commit | dc7e77989134fcda94934dc96aa8ac1c735bd939 (patch) | |
| tree | c110cb8c3de70e2381300c9abb5fe4de0474e6a9 /ceilometerclient/shell.py | |
| parent | 5328c3168a7ed011fc2c6ac16ba8f8e4f9c5e380 (diff) | |
| download | python-ceilometerclient-dc7e77989134fcda94934dc96aa8ac1c735bd939.tar.gz | |
Make method import_versioned_module work
Update function import_versioned_module in Oslo.utils 3.17.
This patch update to meet new version. For more information:
http://docs.openstack.org/developer/oslo.utils/history.html
Change-Id: Ia031b53b27fcea66dbf4f2798d58b51c53c2d0cc
Closes-Bug: #1627313
Diffstat (limited to 'ceilometerclient/shell.py')
| -rw-r--r-- | ceilometerclient/shell.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ceilometerclient/shell.py b/ceilometerclient/shell.py index 1a8293e..f98804c 100644 --- a/ceilometerclient/shell.py +++ b/ceilometerclient/shell.py @@ -21,6 +21,7 @@ import logging import sys from oslo_utils import encodeutils +from oslo_utils import importutils import six import ceilometerclient @@ -112,7 +113,8 @@ class CeilometerShell(object): self.subcommands = {} subparsers = parser.add_subparsers(metavar='<subcommand>') - submodule = utils.import_versioned_module(version, 'shell') + submodule = importutils.import_versioned_module('ceilometerclient', + version, 'shell') self._find_actions(subparsers, submodule) self._find_actions(subparsers, self) self._add_bash_completion_subparser(subparsers) |
