Skip to content

Commit b1941e2

Browse files
committed
fix printing behavior
1 parent 1f38eb0 commit b1941e2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/cmd/volume/snapshot/create/create.go

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

108108
if model.Async {
109-
params.Printer.Info("Triggered snapshot of %q in %q. Snapshot ID: %s\n", volumeLabel, projectLabel, utils.PtrString(resp.Id))
109+
params.Printer.Outputf("Triggered snapshot of %q in %q. Snapshot ID: %s\n", volumeLabel, projectLabel, utils.PtrString(resp.Id))
110110
} else {
111-
params.Printer.Info("Created snapshot of %q in %q. Snapshot ID: %s\n", volumeLabel, projectLabel, utils.PtrString(resp.Id))
111+
params.Printer.Outputf("Created snapshot of %q in %q. Snapshot ID: %s\n", volumeLabel, projectLabel, utils.PtrString(resp.Id))
112112
}
113113
return nil
114114
},

internal/cmd/volume/snapshot/delete/delete.go

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

9090
if model.Async {
91-
params.Printer.Info("Triggered deletion of snapshot %q\n", snapshotLabel)
91+
params.Printer.Outputf("Triggered deletion of snapshot %q\n", snapshotLabel)
9292
} else {
93-
params.Printer.Info("Deleted snapshot %q\n", snapshotLabel)
93+
params.Printer.Outputf("Deleted snapshot %q\n", snapshotLabel)
9494
}
9595
return nil
9696
},

0 commit comments

Comments
 (0)