def _file_configs_paths(osname, agentConfig):
 try:
  confd_path = get_confd_path(osname)
  all_file_configs = glob.glob(os.path.join(confd_path, '*.yaml'))
  all_default_configs = glob.glob(os.path.join(confd_path, '*.yaml.default'))
 except PathNotFound as e:
  log.error(("No conf.d folder found at '%s' or in the directory where the Agent is currently deployed.\n" % e.args[0]))
  sys.exit(3)
 if all_default_configs:
  current_configs = set([_conf_path_to_check_name(conf) for conf in all_file_configs])
  for default_config in all_default_configs:
   if (not (_conf_path_to_check_name(default_config) in current_configs)):
    all_file_configs.append(default_config)
 if (not any((('nagios' in config) for config in itertools.chain(*all_file_configs)))):
  if any([(nagios_key in agentConfig) for nagios_key in NAGIOS_OLD_CONF_KEYS]):
   all_file_configs.append('deprecated/nagios')
 return all_file_configs

def _file_configs_paths ( osname , agentConfig ) : try : confd_path = get_confd_path ( osname ) all_file_configs = glob . glob ( os . path . join ( confd_path , '*.yaml' ) ) all_default_configs = glob . glob ( os . path . join ( confd_path , '*.yaml.default' ) ) except PathNotFound as e : log . error ( ( "No conf.d folder found at '%s' or in the directory where the Agent is currently deployed.\n" % e . args [ 0 ] ) ) sys . exit ( 3 ) if all_default_configs : current_configs = set ( [ _conf_path_to_check_name ( conf ) for conf in all_file_configs ] ) for default_config in all_default_configs : if ( not ( _conf_path_to_check_name ( default_config ) in current_configs ) ) : all_file_configs . append ( default_config ) if ( not any ( ( ( 'nagios' in config ) for config in itertools . chain ( * all_file_configs ) ) ) ) : if any ( [ ( nagios_key in agentConfig ) for nagios_key in NAGIOS_OLD_CONF_KEYS ] ) : all_file_configs . append ( 'deprecated/nagios' ) return all_file_configs
retrieve all the file configs and return their paths .