def load_user_configuration(config_path=None):
 user_defined_config = dict()
 user_config_file = file_find('openstack_user_config.yml', preferred_path=config_path, raise_if_missing=False)
 if (user_config_file is not False):
  with open(user_config_file, 'rb') as f:
   user_defined_config.update((yaml.safe_load(f.read()) or {}))
 base_dir = dir_find(config_path, 'conf.d', raise_if_missing=False)
 if (base_dir is not False):
  _extra_config(user_defined_config, base_dir)
 if (not user_defined_config):
  raise MissingDataSource((_get_search_paths(config_path) + _get_search_paths(config_path, 'conf.d')))
 logger.debug('User configuration loaded from: {}'.format(user_config_file))
 return user_defined_config

def load_user_configuration ( config_path = None ) : user_defined_config = dict ( ) user_config_file = file_find ( 'openstack_user_config.yml' , preferred_path = config_path , raise_if_missing = False ) if ( user_config_file is not False ) : with open ( user_config_file , 'rb' ) as f : user_defined_config . update ( ( yaml . safe_load ( f . read ( ) ) or { } ) ) base_dir = dir_find ( config_path , 'conf.d' , raise_if_missing = False ) if ( base_dir is not False ) : _extra_config ( user_defined_config , base_dir ) if ( not user_defined_config ) : raise MissingDataSource ( ( _get_search_paths ( config_path ) + _get_search_paths ( config_path , 'conf.d' ) ) ) logger . debug ( 'User configuration loaded from: {}' . format ( user_config_file ) ) return user_defined_config
create a user configuration dictionary from config files .