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", }