<s> from oslo_log import log as logging <EOL> import stevedore . driver <EOL> import stevedore . extension <EOL> from nova . i18n import _LE <EOL> LOG = logging . getLogger ( __name__ ) <EOL> def load_transfer_modules ( ) : <EOL> module_dictionary = { } <EOL> ex = stevedore . extension . ExtensionManager ( '<STR_LIT>' ) <EOL> for module_name in ex . names ( ) : <EOL> mgr = stevedore . driver . DriverManager ( <EOL> namespace = '<STR_LIT>' , <EOL> name = module_name , <EOL> invoke_on_load = False ) <EOL> schemes_list = mgr . driver . get_schemes ( ) <EOL> for scheme in schemes_list : <EOL> if scheme in module_dictionary : <EOL> LOG . error ( _LE ( '<STR_LIT>' <EOL> '<STR_LIT>' ) , <EOL> { '<STR_LIT>' : scheme , <EOL> '<STR_LIT>' : module_name } ) <EOL> else : <EOL> module_dictionary [ scheme ] = mgr . driver <EOL> return module_dictionary </s>
