]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Backout 152195, which doesn't check the same token that it saves
authorDoug Wiegley <dougw@a10networks.com>
Mon, 2 Feb 2015 20:27:18 +0000 (14:27 -0600)
committerDoug Wiegley <dougw@a10networks.com>
Mon, 2 Feb 2015 20:27:18 +0000 (14:27 -0600)
Change-Id: Ia98cd4de04100be2a32532a058a31ef8b4df7905

neutron/api/extensions.py

index ea045b5ec81dc4cd2613755b71783f4b4d85ce8a..b1294e155ea201915e8027008370098e9617d528 100644 (file)
@@ -546,6 +546,7 @@ class ExtensionManager(object):
                                  mod_name)
                         continue
                     mod = imp.load_source(mod_name, ext_path)
+                    loaded.append(mod_name)
                     ext_name = mod_name[0].upper() + mod_name[1:]
                     new_ext_class = getattr(mod, ext_name, None)
                     if not new_ext_class:
@@ -556,7 +557,6 @@ class ExtensionManager(object):
                         continue
                     new_ext = new_ext_class()
                     self.add_extension(new_ext)
-                    loaded.append(new_ext_class.get_alias())
             except Exception as exception:
                 LOG.warn(_LW("Extension file %(f)s wasn't loaded due to "
                              "%(exception)s"),