def get_alembic_configs():
 script_locations = {}
 if CONF.subproject:
  script_location = _get_subproject_script_location(CONF.subproject)
  script_locations[CONF.subproject] = script_location
 else:
  for (subproject, ep) in migration_entrypoints.items():
   script_locations[subproject] = _get_subproject_script_location(subproject)
 configs = []
 project_seq = sorted(script_locations.keys())
 if ((len(project_seq) > 1) and ('neutron' in project_seq)):
  project_seq.insert(0, project_seq.pop(project_seq.index('neutron')))
 for project in project_seq:
  config = alembic_config.Config(neutron_alembic_ini)
  config.set_main_option('neutron_project', project)
  script_location = script_locations[project]
  config.set_main_option('script_location', script_location)
  _set_version_locations(config)
  config.neutron_config = CONF
  configs.append(config)
 return configs

def get_alembic_configs ( ) : script_locations = { } if CONF . subproject : script_location = _get_subproject_script_location ( CONF . subproject ) script_locations [ CONF . subproject ] = script_location else : for ( subproject , ep ) in migration_entrypoints . items ( ) : script_locations [ subproject ] = _get_subproject_script_location ( subproject ) configs = [ ] project_seq = sorted ( script_locations . keys ( ) ) if ( ( len ( project_seq ) > 1 ) and ( 'neutron' in project_seq ) ) : project_seq . insert ( 0 , project_seq . pop ( project_seq . index ( 'neutron' ) ) ) for project in project_seq : config = alembic_config . Config ( neutron_alembic_ini ) config . set_main_option ( 'neutron_project' , project ) script_location = script_locations [ project ] config . set_main_option ( 'script_location' , script_location ) _set_version_locations ( config ) config . neutron_config = CONF configs . append ( config ) return configs
return a list of alembic configs .