Skip to content

Commit 32b0e1a

Browse files
Fix mssql and mysql analyzers (#1359)
fix mssql and mysql analyzers
1 parent cc56522 commit 32b0e1a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/analyze/mssql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (a *AnalyzeMssql) collectorName() string {
4343
if a.analyzer.CollectorName != "" {
4444
return a.analyzer.CollectorName
4545
}
46-
return "mysql"
46+
return "mssql"
4747
}
4848

4949
func compareMssqlConditionalToActual(conditional string, result *collect.DatabaseConnection) (bool, error) {

pkg/analyze/mysql.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ func (a *AnalyzeMysql) collectorName() string {
4040
if a.analyzer.CollectorName != "" {
4141
return a.analyzer.CollectorName
4242
}
43-
return "mssql"
43+
return "mysql"
4444
}
4545

4646
func (a *AnalyzeMysql) analyzeMysql(analyzer *troubleshootv1beta2.DatabaseAnalyze, getCollectedFileContents func(string) ([]byte, error)) (*AnalyzeResult, error) {
47-
fullPath := path.Join("mssql", fmt.Sprintf("%s.json", a.collectorName()))
47+
fullPath := path.Join("mysql", fmt.Sprintf("%s.json", a.collectorName()))
4848

4949
collected, err := getCollectedFileContents(fullPath)
5050
if err != nil {
@@ -58,7 +58,7 @@ func (a *AnalyzeMysql) analyzeMysql(analyzer *troubleshootv1beta2.DatabaseAnalyz
5858

5959
result := &AnalyzeResult{
6060
Title: a.Title(),
61-
IconKey: "kubernetes_mssql_analyze",
61+
IconKey: "kubernetes_mysql_analyze",
6262
IconURI: "https://troubleshoot.sh/images/analyzer-icons/mysql-analyze.svg",
6363
}
6464

0 commit comments

Comments
 (0)