From 57821de9eab66344d14b45e5a14f2e52a23af8be Mon Sep 17 00:00:00 2001 From: Andrew Bogott Date: Sun, 8 Jul 2012 05:54:40 -0500 Subject: pep8 cleanup in the plugin code The nova hacking test turned up one alphabetization error that I missed previously. Also, our path-altering process caused one line to exceed 80 characters when copied into nova; that line is shorter now. Change-Id: Ia3acfc25ecc5ba388526766dae3ed03792e906e3 --- openstack/common/plugin/pluginmanager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openstack/common/plugin/pluginmanager.py') 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) -- cgit