From cda87d777f678fd7d4076d3ccd223bd654bac800 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Thu, 7 Mar 2019 09:44:32 +0100 Subject: [PATCH] Update main.go move machine readable comment to a more logical place. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 155e57acf..b8d116d2b 100644 --- a/main.go +++ b/main.go @@ -182,6 +182,7 @@ func wrappedMain() int { var ui packer.Ui if machineReadable { + // Setup the UI as we're being machine-readable ui = &packer.MachineReadableUi{ Writer: os.Stdout, } @@ -201,7 +202,6 @@ func wrappedMain() int { fmt.Fprintf(os.Stderr, "No tty available: %s\n", err) } } - // Setup the UI if we're being machine-readable ui = &packer.BasicUi{ Reader: os.Stdin, Writer: os.Stdout,