def is_extension_enabled(extension_name, service):
 config_dict = {'compute': CONF.compute_feature_enabled.api_extensions, 'volume': CONF.volume_feature_enabled.api_extensions, 'network': CONF.network_feature_enabled.api_extensions, 'object': CONF.object_storage_feature_enabled.discoverable_apis, 'identity': CONF.identity_feature_enabled.api_extensions}
 if (len(config_dict[service]) == 0):
  return False
 if (config_dict[service][0] == 'all'):
  return True
 if (extension_name in config_dict[service]):
  return True
 return False

def is_extension_enabled ( extension_name , service ) : config_dict = { 'compute' : CONF . compute_feature_enabled . api_extensions , 'volume' : CONF . volume_feature_enabled . api_extensions , 'network' : CONF . network_feature_enabled . api_extensions , 'object' : CONF . object_storage_feature_enabled . discoverable_apis , 'identity' : CONF . identity_feature_enabled . api_extensions } if ( len ( config_dict [ service ] ) == 0 ) : return False if ( config_dict [ service ] [ 0 ] == 'all' ) : return True if ( extension_name in config_dict [ service ] ) : return True return False
a function that will check the list of enabled extensions from config .