terraform: prefix the provisioner output

This commit is contained in:
Mitchell Hashimoto 2014-10-04 10:38:46 -07:00
parent 24dd078bee
commit d7a1f3dc0e
1 changed files with 5 additions and 1 deletions

View File

@ -1313,7 +1313,11 @@ func (c *walkContext) applyProvisioners(r *Resource, is *InstanceState) error {
handleHook(h.PreProvision(r.Info, prov.Type))
}
err := prov.Provisioner.Apply(c.Context.uiOutput, is, prov.Config)
output := PrefixUIOutput{
Prefix: r.Id + ": ",
UIOutput: c.Context.uiOutput,
}
err := prov.Provisioner.Apply(&output, is, prov.Config)
if err != nil {
return err
}