terraform: prefix the provisioner output
This commit is contained in:
parent
24dd078bee
commit
d7a1f3dc0e
|
@ -1313,7 +1313,11 @@ func (c *walkContext) applyProvisioners(r *Resource, is *InstanceState) error {
|
||||||
handleHook(h.PreProvision(r.Info, prov.Type))
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue