def symptom_LDAP_file_based_domain_specific_configs():
 if ((not CONF.identity.domain_specific_drivers_enabled) or CONF.identity.domain_configurations_from_database):
  return False
 invalid_files = []
 filedir = CONF.identity.domain_config_dir
 if os.path.isdir(filedir):
  for filename in os.listdir(filedir):
   if (not re.match(CONFIG_REGEX, filename)):
    invalid_files.append(filename)
  if invalid_files:
   invalid_str = ', '.join(invalid_files)
   print(('Warning: The following non-config files were found: %s\nIf they are intended to be config files then rename them to the form of `keystone.<domain_name>.conf`. Otherwise, ignore this warning' % invalid_str))
   return True
 else:
  print('Could not find directory ', filedir)
  return True
 return False

def symptom_LDAP_file_based_domain_specific_configs ( ) : if ( ( not CONF . identity . domain_specific_drivers_enabled ) or CONF . identity . domain_configurations_from_database ) : return False invalid_files = [ ] filedir = CONF . identity . domain_config_dir if os . path . isdir ( filedir ) : for filename in os . listdir ( filedir ) : if ( not re . match ( CONFIG_REGEX , filename ) ) : invalid_files . append ( filename ) if invalid_files : invalid_str = ', ' . join ( invalid_files ) print ( ( 'Warning: The following non-config files were found: %s\nIf they are intended to be config files then rename them to the form of `keystone.<domain_name>.conf`. Otherwise, ignore this warning' % invalid_str ) ) return True else : print ( 'Could not find directory ' , filedir ) return True return False
domain specific driver directory is invalid or contains invalid files .