if interactive, only return the print archivePath to stdout; if non-interactive, print whole analysis as json
@@ -195,6 +195,7 @@ the %s Admin Console to begin analysis.`
return nil
}
+ if !interactive {
nonInteractiveOutput.ArchivePath = response.ArchivePath
output, err := nonInteractiveOutput.FormattedAnalysisOutput()
if err != nil {
@@ -204,6 +205,10 @@ the %s Admin Console to begin analysis.`
return nil
}
+ fmt.Printf("%s\n", response.ArchivePath)
+ return nil
+ }
+
fmt.Printf("\r%s\r", cursor.ClearEntireLine())
if response.FileUploaded {
fmt.Printf("A support bundle has been created and uploaded to your cluster for analysis. Please visit the Troubleshoot page to continue.\n")
