From 1c9f1736fbb1b12792b009779460fe1282de7f2a Mon Sep 17 00:00:00 2001 From: Max Walther Date: Mon, 19 Feb 2018 15:29:45 +0100 Subject: [PATCH] Fix bug with vault cli when reading an individual field containing a Printf formatting verb (#4005) --- command/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/util.go b/command/util.go index 04e04fc6a9..8055ae2445 100644 --- a/command/util.go +++ b/command/util.go @@ -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 }