File tree 1 file changed +9
-1
lines changed 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.`
115
115
return nil
116
116
}
117
117
118
+ fileUploaded := false
118
119
for _ , ac := range collector .Spec .AfterCollection {
119
120
if ac .UploadResultsTo != nil {
120
121
if err := uploadSupportBundle (ac .UploadResultsTo , archivePath ); err != nil {
121
122
return errors .Wrap (err , "upload support bundle" )
122
123
}
124
+ fileUploaded = true
123
125
} else if ac .Callback != nil {
124
126
if err := callbackSupportBundleAPI (ac .Callback , archivePath ); err != nil {
125
127
return errors .Wrap (err , "execute callback" )
126
128
}
127
129
}
128
130
}
129
131
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
+ }
131
139
return nil
132
140
}
133
141
You can’t perform that action at this time.
0 commit comments