File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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 ("\n A 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
You can’t perform that action at this time.
0 commit comments