Skip to content

Commit c84bc86

Browse files
authored
Merge pull request #45 from replicatedhq/message
Better message at the end of support bundle generation
2 parents f9efac3 + 2e61a8e commit c84bc86

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

cmd/troubleshoot/cli/run_nocrd.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,16 @@ func runTroubleshootNoCRD(v *viper.Viper, arg string) error {
104104
}
105105

106106
fmt.Printf("\r%s", cursor.ClearEntireLine())
107-
fmt.Printf("%s\n", archivePath)
107+
108+
msg := archivePath
109+
if appName := collector.Labels["applicationName"]; appName != "" {
110+
f := `A support bundle for %s has been created in this directory
111+
named %s. Please upload it on the Troubleshoot page of
112+
the %s Admin Console to begin analysis.`
113+
msg = fmt.Sprintf(f, appName, archivePath, appName)
114+
}
115+
116+
fmt.Printf("%s\n", msg)
108117

109118
return nil
110119
}

0 commit comments

Comments
 (0)