Skip to content

Commit

Permalink
Better message at the end of support bundle generation
Browse files Browse the repository at this point in the history
  • Loading branch information
divolgin committed Aug 7, 2019
1 parent f9efac3 commit 2e61a8e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cmd/troubleshoot/cli/run_nocrd.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,16 @@ func runTroubleshootNoCRD(v *viper.Viper, arg string) error {
}

fmt.Printf("\r%s", cursor.ClearEntireLine())
fmt.Printf("%s\n", archivePath)

msg := archivePath
if appName := collector.Labels["applicationName"]; appName != "" {
f := `A support bundle for %s has been created in this directory
named %s. Please upload it on the Troubleshoot page of
the %s Admin Console to begin analysis.`
msg = fmt.Sprintf(f, appName, archivePath, appName)
}

fmt.Printf("%s\n", msg)

return nil
}
Expand Down

0 comments on commit 2e61a8e

Please sign in to comment.