command: fix data race on Ui

This commit is contained in:
Mitchell Hashimoto 2014-08-19 10:22:26 -07:00
parent 25607686c1
commit bc1947124e
1 changed files with 6 additions and 4 deletions

View File

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