command: UI in Apply

This commit is contained in:
Mitchell Hashimoto 2014-06-26 22:13:54 -07:00
parent 55359ce815
commit 6b765328c2
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ func (c *ApplyCommand) Run(args []string) int {
return 1
}
c.TFConfig.Hooks = append(c.TFConfig.Hooks, &UiHook{Ui: c.Ui})
tf, err := terraform.New(c.TFConfig)
if err != nil {
c.Ui.Error(fmt.Sprintf("Error initializing Terraform: %s", err))