From bc1947124e1f5e5184bf9c83aa7357239fbed264 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 19 Aug 2014 10:22:26 -0700 Subject: [PATCH] command: fix data race on Ui --- command/meta.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/command/meta.go b/command/meta.go index cf09be0a2..aaf00d7dd 100644 --- a/command/meta.go +++ b/command/meta.go @@ -153,10 +153,12 @@ func (m *Meta) process(args []string, vars bool) []string { // Set the UI m.oldUi = m.Ui - m.Ui = &ColorizeUi{ - Colorize: m.Colorize(), - ErrorColor: "[red]", - Ui: m.oldUi, + m.Ui = &cli.ConcurrentUi{ + Ui: &ColorizeUi{ + Colorize: m.Colorize(), + ErrorColor: "[red]", + Ui: m.oldUi, + }, } // If we support vars and the default var file exists, add it to