Merge "Makes the Extension loader behavior predictable"
This commit is contained in:
commit
29e272b69d
|
@ -541,7 +541,10 @@ class ExtensionManager(object):
|
||||||
LOG.error(_("Extension path '%s' doesn't exist!"), path)
|
LOG.error(_("Extension path '%s' doesn't exist!"), path)
|
||||||
|
|
||||||
def _load_all_extensions_from_path(self, path):
|
def _load_all_extensions_from_path(self, path):
|
||||||
for f in os.listdir(path):
|
# Sorting the extension list makes the order in which they
|
||||||
|
# are loaded predictable across a cluster of load-balanced
|
||||||
|
# Neutron Servers
|
||||||
|
for f in sorted(os.listdir(path)):
|
||||||
try:
|
try:
|
||||||
LOG.info(_('Loading extension file: %s'), f)
|
LOG.info(_('Loading extension file: %s'), f)
|
||||||
mod_name, file_ext = os.path.splitext(os.path.split(f)[-1])
|
mod_name, file_ext = os.path.splitext(os.path.split(f)[-1])
|
||||||
|
|
Loading…
Reference in New Issue