diff --git a/packer/environment.go b/packer/environment.go index 245672d05..62d8ffae0 100644 --- a/packer/environment.go +++ b/packer/environment.go @@ -81,8 +81,8 @@ func DefaultEnvironmentConfig() *EnvironmentConfig { config := &EnvironmentConfig{} config.Commands = make([]string, 0) config.Ui = &BasicUi{ - Reader: os.Stdin, - Writer: os.Stdout, + Reader: os.Stdin, + Writer: os.Stdout, ErrorWriter: os.Stderr, } diff --git a/packer/environment_test.go b/packer/environment_test.go index 7a16803e4..c293c2a9a 100644 --- a/packer/environment_test.go +++ b/packer/environment_test.go @@ -30,8 +30,8 @@ func testComponentFinder() *ComponentFinder { func testEnvironment() Environment { config := DefaultEnvironmentConfig() config.Ui = &BasicUi{ - Reader: new(bytes.Buffer), - Writer: new(bytes.Buffer), + Reader: new(bytes.Buffer), + Writer: new(bytes.Buffer), ErrorWriter: new(bytes.Buffer), } diff --git a/packer/ui_test.go b/packer/ui_test.go index 3dd8208e5..08dd530a5 100644 --- a/packer/ui_test.go +++ b/packer/ui_test.go @@ -25,8 +25,8 @@ func readErrorWriter(ui *BasicUi) (result string) { func testUi() *BasicUi { return &BasicUi{ - Reader: new(bytes.Buffer), - Writer: new(bytes.Buffer), + Reader: new(bytes.Buffer), + Writer: new(bytes.Buffer), ErrorWriter: new(bytes.Buffer), } }