Add newline on non-ttl output (#3967)

Output is formatted with newlines in mind, so without this those get
lost and things get funky due to multiple outputs running together.
This commit is contained in:
Jeff Mitchell
2018-02-13 14:46:57 -05:00
committed by GitHub
parent c400463298
commit 89dbe2deff

View File

@@ -23,7 +23,9 @@ func (u *VaultUI) Output(m string) {
if u.isTerminal {
u.Ui.Output(m)
} else {
getWriterFromUI(u.Ui).Write([]byte(m))
writer := getWriterFromUI(u.Ui)
writer.Write([]byte(m))
writer.Write([]byte("\n"))
}
}