diff options
author | kong wei <kong.wei2@zte.com.cn> | 2017-03-03 14:37:44 +0000 |
---|---|---|
committer | kong wei <kong.wei2@zte.com.cn> | 2017-03-03 14:52:08 +0000 |
commit | 71d4f906c1a52f5dcba114ff8aa70148dafffd24 (patch) | |
tree | 504b901f925cd4050c6ddece1c30f664634eee56 /api/escalator/notifier.py | |
parent | c1783221873845d072b739c7ebd8d0a75fe00bb9 (diff) |
escalator should use oslo.xxx instead of oslo-xxx
Change-Id: I2a3b9775044d389413e113a2ed73fbab02ea9dd9
Signed-off-by: Kong Wei<kong.wei2@zte.com.cn>
Diffstat (limited to 'api/escalator/notifier.py')
-rw-r--r-- | api/escalator/notifier.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/api/escalator/notifier.py b/api/escalator/notifier.py index 1e6ea02..60a39ea 100644 --- a/api/escalator/notifier.py +++ b/api/escalator/notifier.py @@ -14,9 +14,9 @@ # License for the specific language governing permissions and limitations # under the License. -from oslo_config import cfg -from oslo_log import log as logging -import oslo_messaging +from oslo.config import cfg +from oslo.log import log as logging +import oslo.messaging from escalator import i18n @@ -44,7 +44,7 @@ LOG = logging.getLogger(__name__) def get_transport(): - return oslo_messaging.get_transport(CONF) + return oslo.messaging.get_transport(CONF) class Notifier(object): @@ -53,7 +53,7 @@ class Notifier(object): def __init__(self): publisher_id = CONF.default_publisher_id self._transport = get_transport() - self._notifier = oslo_messaging.Notifier(self._transport, + self._notifier = oslo.messaging.Notifier(self._transport, publisher_id=publisher_id) def warn(self, event_type, payload): |