mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-08-27 00:37:20 +00:00
@@ -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) {
|
||||
|
||||
@@ -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",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user