Fix bug with vault cli when reading an individual field containing a Printf formatting verb (#4005)

This commit is contained in:
Max Walther
2018-02-19 15:29:45 +01:00
committed by Jeff Mitchell
parent 7a46918f8c
commit 1c9f1736fb

View File

@@ -128,7 +128,7 @@ func PrintRaw(ui cli.Ui, str string) int {
// The cli.Ui prints a CR, which is not wanted since the user probably wants
// just the raw value.
w := getWriterFromUI(ui)
fmt.Fprintf(w, str)
fmt.Fprint(w, str)
}
return 0
}