Update main.go

move machine readable comment to a more logical place.
This commit is contained in:
Adrien Delorme 2019-03-07 09:44:32 +01:00
parent d177a2647a
commit cda87d777f
1 changed files with 1 additions and 1 deletions

View File

@ -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,