]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Discriminate loaded extensions using their alias
authorSalvatore Orlando <salv.orlando@gmail.com>
Mon, 2 Feb 2015 17:08:17 +0000 (09:08 -0800)
committerSalvatore Orlando <salv.orlando@gmail.com>
Mon, 2 Feb 2015 17:17:33 +0000 (09:17 -0800)
commit6e4a992d31b67c457d56d28063a986152c70c842
treebe1b77550124e9c74f9f36ed478a492bf319f8c2
parentf0a693c29e47408e6217affd7841aebbd3b9b4bd
Discriminate loaded extensions using their alias

This patch simply changes the logic for discriminating which
extensions have already been loaded using the extension alias
rather than the module name.

This will avoid failures already observed in unit tests occurring
if two extension modules happen to have the same module file name
even if they're unrelated.

This change cannot be unit-tested as the neutron unit test
framework is currently lacking a mechanism to mock and validate
extension loading from the file system.

Closes-Bug: #1417180

Change-Id: Ia214a7c5b1127dbbec3c81023fdbc48d7fadf18f
neutron/api/extensions.py