def is_scheduler_filter_enabled(filter_name):
 filters = CONF.compute_feature_enabled.scheduler_available_filters
 if (len(filters) == 0):
  return False
 if ('all' in filters):
  return True
 if (filter_name in filters):
  return True
 return False

def is_scheduler_filter_enabled ( filter_name ) : filters = CONF . compute_feature_enabled . scheduler_available_filters if ( len ( filters ) == 0 ) : return False if ( 'all' in filters ) : return True if ( filter_name in filters ) : return True return False
check the list of enabled compute scheduler filters from config .