diff options
Diffstat (limited to 'openstack/common/plugin')
| -rw-r--r-- | openstack/common/plugin/callbackplugin.py | 2 | ||||
| -rw-r--r-- | openstack/common/plugin/pluginmanager.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/openstack/common/plugin/callbackplugin.py b/openstack/common/plugin/callbackplugin.py index bb56a40..bddd796 100644 --- a/openstack/common/plugin/callbackplugin.py +++ b/openstack/common/plugin/callbackplugin.py @@ -13,8 +13,8 @@ # License for the specific language governing permissions and limitations # under the License. -from openstack.common.plugin import plugin from openstack.common import log as logging +from openstack.common.plugin import plugin LOG = logging.getLogger(__name__) diff --git a/openstack/common/plugin/pluginmanager.py b/openstack/common/plugin/pluginmanager.py index 0095135..2e3d497 100644 --- a/openstack/common/plugin/pluginmanager.py +++ b/openstack/common/plugin/pluginmanager.py @@ -57,7 +57,8 @@ class PluginManager(object): if not hasattr(CONF, "list_notifier_drivers"): CONF.list_notifier_drivers = [] old_notifier = CONF.notification_driver - CONF.notification_driver = 'openstack.common.notifier.list_notifier' + drvstring = 'openstack.common.notifier.list_notifier' + CONF.notification_driver = drvstring if (old_notifier and old_notifier != 'openstack.common.notifier.list_notifier'): list_notifier.add_driver(old_notifier) |
