yandextank/core/tankcore.py
def get_plugins_of_type(self, plugin_class):
        """
        Retrieve a list of plugins of desired class, KeyError raised otherwise
        """
        logger.debug("Searching for plugins: %s", plugin_class)
        matches = [plugin for plugin in self.plugins.values() if isinstance(plugin, plugin_class)]
        if matches:
            return matches
        else:
            raise KeyError("Requested plugin type not found: %s" % plugin_class)
def get_plugins_of_type(self, plugin_class):
        logger.debug("Searching for plugins: %s", plugin_class)
        matches = [plugin for plugin in self.plugins.values() if isinstance(plugin, plugin_class)]
        if matches:
            return matches
        else:
            raise KeyError("Requested plugin type not found: %s" % plugin_class)
def get_plugins_of_type ( self , plugin_class ) : logger . debug ( "Searching for plugins: %s" , plugin_class ) matches = [ plugin for plugin in self . plugins . values ( ) if isinstance ( plugin , plugin_class ) ] if matches : return matches else : raise KeyError ( "Requested plugin type not found: %s" % plugin_class )
Retrieve a list of plugins of desired class, KeyError raised otherwise
Retrieve a list of plugins of desired class KeyError raised otherwise