diff options
| author | Andrew Bogott <abogott@wikimedia.org> | 2012-07-08 05:54:40 -0500 |
|---|---|---|
| committer | Andrew Bogott <abogott@wikimedia.org> | 2012-07-08 05:56:21 -0500 |
| commit | 57821de9eab66344d14b45e5a14f2e52a23af8be (patch) | |
| tree | 541d5048d8cbb1778077eec5df09de79cf5f5588 /openstack/common | |
| parent | 289a0b328b96693944faf69b43124d4449cdbded (diff) | |
| download | oslo-57821de9eab66344d14b45e5a14f2e52a23af8be.tar.gz oslo-57821de9eab66344d14b45e5a14f2e52a23af8be.tar.xz oslo-57821de9eab66344d14b45e5a14f2e52a23af8be.zip | |
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
Diffstat (limited to 'openstack/common')
| -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) |
