def _check_plugins()

in src/dma/collector/workflows/readiness_check/_mysql/main.py [0:0]


    def _check_plugins(self) -> None:
        rule_code = "PLUGINS"
        result = self.local_db.sql("select distinct plugin_name from collection_mysql_plugins").fetchmany()
        plugins = {row[0] for row in result}
        for c in self.rule_config:
            unsupported_plugins = plugins.difference(c.supported_plugins)
            for unsupported_plugin in unsupported_plugins:
                self.save_rule_result(
                    c.db_variant,
                    rule_code,
                    "ERROR",
                    f"Unsupported plugin: {unsupported_plugin} is not supported on this instance",
                )
            if len(unsupported_plugins) == 0:
                self.save_rule_result(
                    c.db_variant,
                    rule_code,
                    "PASS",
                    "All utilized plugins are supported.",
                )