Skip to content

Commit

Permalink
cli: fix bug with 'vault read -field=...' when the field value contai…
Browse files Browse the repository at this point in the history
…ns a printf formatting verb (#2109)
  • Loading branch information
kylemcc authored and jefferai committed Nov 22, 2016
1 parent 6165c3e commit 9571df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func PrintRawField(ui cli.Ui, secret *api.Secret, field string) int {
// directly print the message. If mitchellh/cli exposes method
// to print without CR, this check needs to be removed.
if reflect.TypeOf(ui).String() == "*cli.BasicUi" {
fmt.Fprintf(os.Stdout, fmt.Sprintf("%v", val))
fmt.Fprintf(os.Stdout, "%v", val)
} else {
ui.Output(fmt.Sprintf("%v", val))
}
Expand Down

0 comments on commit 9571df6

Please sign in to comment.