mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
command: make sure the output has a line from a provisioner to output
This commit is contained in:
parent
8fc134caa1
commit
fbeb99ee83
@ -177,7 +177,9 @@ func (h *UiHook) ProvisionOutput(
|
|||||||
s := bufio.NewScanner(strings.NewReader(msg))
|
s := bufio.NewScanner(strings.NewReader(msg))
|
||||||
s.Split(scanLines)
|
s.Split(scanLines)
|
||||||
for s.Scan() {
|
for s.Scan() {
|
||||||
buf.WriteString(fmt.Sprintf("%s%s\n", prefix, s.Text()))
|
if line := strings.TrimSpace(s.Text()); line != "" {
|
||||||
|
buf.WriteString(fmt.Sprintf("%s%s\n", prefix, line))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
h.ui.Output(strings.TrimSpace(buf.String()))
|
h.ui.Output(strings.TrimSpace(buf.String()))
|
||||||
|
Loading…
Reference in New Issue
Block a user