Commit fdda64f4 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

provisioner/shell: Trim whitespace on output

parent 684df67c
...@@ -10,6 +10,7 @@ import ( ...@@ -10,6 +10,7 @@ import (
"io" "io"
"log" "log"
"os" "os"
"strings"
"time" "time"
) )
...@@ -90,9 +91,9 @@ OutputLoop: ...@@ -90,9 +91,9 @@ OutputLoop:
for { for {
select { select {
case output := <-stderrChan: case output := <-stderrChan:
ui.Say(output) ui.Say(strings.TrimSpace(output))
case output := <-stdoutChan: case output := <-stdoutChan:
ui.Say(output) ui.Say(strings.TrimSpace(output))
case exitStatus := <-exitChan: case exitStatus := <-exitChan:
log.Printf("shell provisioner exited with status %d", exitStatus) log.Printf("shell provisioner exited with status %d", exitStatus)
break OutputLoop break OutputLoop
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment