Skip to content

Commit 37a5b45

Browse files
committed
fix printing behavior
1 parent db02ec6 commit 37a5b45

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/cmd/volume/backup/delete/delete.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
8484
}
8585

8686
if model.Async {
87-
params.Printer.Info("Triggered deletion of backup %q\n", backupLabel)
87+
params.Printer.Outputf("Triggered deletion of backup %q\n", backupLabel)
8888
} else {
89-
params.Printer.Info("Deleted backup %q\n", backupLabel)
89+
params.Printer.Outputf("Deleted backup %q\n", backupLabel)
9090
}
9191
return nil
9292
},

internal/cmd/volume/backup/restore/restore.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
9797
}
9898

9999
if model.Async {
100-
params.Printer.Info("Triggered restore of %q with %q in %q\n", sourceLabel, backupLabel, model.ProjectId)
100+
params.Printer.Outputf("Triggered restore of %q with %q in %q\n", sourceLabel, backupLabel, model.ProjectId)
101101
} else {
102-
params.Printer.Info("Restored %q with %q in %q\n", sourceLabel, backupLabel, model.ProjectId)
102+
params.Printer.Outputf("Restored %q with %q in %q\n", sourceLabel, backupLabel, model.ProjectId)
103103
}
104104
return nil
105105
},

0 commit comments

Comments
 (0)