From 4fcb59046f674f78087ce8611f692709bfc015b7 Mon Sep 17 00:00:00 2001 From: Diamon Wiggins Date: Mon, 9 Oct 2023 10:11:41 -0400 Subject: [PATCH] fix mssql and mysql analyzers --- pkg/analyze/mssql.go | 2 +- pkg/analyze/mysql.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/analyze/mssql.go b/pkg/analyze/mssql.go index f454a3ede..83e65e7d9 100644 --- a/pkg/analyze/mssql.go +++ b/pkg/analyze/mssql.go @@ -43,7 +43,7 @@ func (a *AnalyzeMssql) collectorName() string { if a.analyzer.CollectorName != "" { return a.analyzer.CollectorName } - return "mysql" + return "mssql" } func compareMssqlConditionalToActual(conditional string, result *collect.DatabaseConnection) (bool, error) { diff --git a/pkg/analyze/mysql.go b/pkg/analyze/mysql.go index d6c36f5f2..94e486b12 100644 --- a/pkg/analyze/mysql.go +++ b/pkg/analyze/mysql.go @@ -40,11 +40,11 @@ func (a *AnalyzeMysql) collectorName() string { if a.analyzer.CollectorName != "" { return a.analyzer.CollectorName } - return "mssql" + return "mysql" } func (a *AnalyzeMysql) analyzeMysql(analyzer *troubleshootv1beta2.DatabaseAnalyze, getCollectedFileContents func(string) ([]byte, error)) (*AnalyzeResult, error) { - fullPath := path.Join("mssql", fmt.Sprintf("%s.json", a.collectorName())) + fullPath := path.Join("mysql", fmt.Sprintf("%s.json", a.collectorName())) collected, err := getCollectedFileContents(fullPath) if err != nil { @@ -58,7 +58,7 @@ func (a *AnalyzeMysql) analyzeMysql(analyzer *troubleshootv1beta2.DatabaseAnalyz result := &AnalyzeResult{ Title: a.Title(), - IconKey: "kubernetes_mssql_analyze", + IconKey: "kubernetes_mysql_analyze", IconURI: "https://troubleshoot.sh/images/analyzer-icons/mysql-analyze.svg", }