Skip to content

Commit 2455f87

Browse files
authored
Merge pull request #68 from replicatedhq/divolgin/better-messaging
Better messaging when support bundle is uploaded
2 parents e88e3a4 + 642c1d7 commit 2455f87

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cmd/troubleshoot/cli/run_nocrd.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,19 +115,27 @@ the %s Admin Console to begin analysis.`
115115
return nil
116116
}
117117

118+
fileUploaded := false
118119
for _, ac := range collector.Spec.AfterCollection {
119120
if ac.UploadResultsTo != nil {
120121
if err := uploadSupportBundle(ac.UploadResultsTo, archivePath); err != nil {
121122
return errors.Wrap(err, "upload support bundle")
122123
}
124+
fileUploaded = true
123125
} else if ac.Callback != nil {
124126
if err := callbackSupportBundleAPI(ac.Callback, archivePath); err != nil {
125127
return errors.Wrap(err, "execute callback")
126128
}
127129
}
128130
}
129131

130-
fmt.Printf("\nA support bundle has been created in the current directory named %q\n", archivePath)
132+
fmt.Printf("\r%s\r", cursor.ClearEntireLine())
133+
if fileUploaded {
134+
fmt.Printf("A support bundle has been created and uploaded to your cluster for analysis. Please visit the Troubleshoot page to continue.\n")
135+
fmt.Printf("A copy of this support bundle was written to the current directory, named %q\n", archivePath)
136+
} else {
137+
fmt.Printf("A support bundle has been created in the current directory named %q\n", archivePath)
138+
}
131139
return nil
132140
}
133141

0 commit comments

Comments
 (0)