def load_plugins(namespace='alerta.plugins'):

    plugins = []
    for ep in list(pkg_resources.iter_entry_points(namespace)):
        LOG.debug("Server plug-in '%s' found.", ep.name)
        try:
            if app.config['PLUGINS'] in ep.name:
                plugin = ep.load()
                if plugin:
                    plugins.append(plugin())
                    LOG.info("Server plug-in '%s' enabled.", ep.name)
            else:
                LOG.debug("Server plug-in '%s' not enabled in 'PLUGINS'.", ep.name)
        except Exception as e:
            LOG.error("Server plug-in '%s' could not be loaded: %s", ep.name, e)
    return plugins
dataset/ETHPy150Open guardian/alerta/alerta/plugins/__init__.py/load_plugins/swapped operands of `in`