From 4000eec07ca58226d99dc3f0c943c950c2734397 Mon Sep 17 00:00:00 2001
From: Mark McLoughlin <markmc@redhat.com>
Date: Mon, 24 Jun 2013 07:38:11 +0100
Subject: [PATCH] Handle case where no drivers configured

---
 oslo/messaging/notify/notifier.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/oslo/messaging/notify/notifier.py b/oslo/messaging/notify/notifier.py
index d76d8b081..8181558e1 100644
--- a/oslo/messaging/notify/notifier.py
+++ b/oslo/messaging/notify/notifier.py
@@ -144,7 +144,9 @@ class Notifier(object):
                 _LOG.exception("Problem '%(e)s' attempting to send to "
                                "notification system. Payload=%(payload)s",
                                dict(e=e, payload=payload))
-        self._driver_mgr.map(do_notify)
+
+        if self._driver_mgr.extensions:
+            self._driver_mgr.map(do_notify)
 
     def debug(self, ctxt, event_type, payload):
         """Send a notification at debug level.