Skip to content

Commit

Permalink
Fix wrong message shown when upload to SUBNET fails (#5005)
Browse files Browse the repository at this point in the history
When upload of the inspect file to SUBNET fails, following wrong message
was getting printed:

`Object inspection data for '' uploaded to SUBNET successfully`

Fixed the if condition to ensure that following correct message is
printed:

`File data successfully downloaded as <filename>`
  • Loading branch information
anjalshireesh authored Aug 5, 2024
1 parent f0d2ad4 commit 28d64f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/support-inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ type inspectMessage struct {
// Colorized message for console printing.
func (t inspectMessage) String() string {
var msg string
if globalAirgapped {
if globalAirgapped || t.File != "" {
if t.Key == "" {
msg = fmt.Sprintf("File data successfully downloaded as %s", console.Colorize("File", t.File))
} else {
Expand Down

0 comments on commit 28d64f2

Please sign in to comment.