1package terraform 2 3import ( 4 "github.com/hashicorp/terraform/addrs" 5) 6 7// ProvisionerUIOutput is an implementation of UIOutput that calls a hook 8// for the output so that the hooks can handle it. 9type ProvisionerUIOutput struct { 10 InstanceAddr addrs.AbsResourceInstance 11 ProvisionerType string 12 Hooks []Hook 13} 14 15func (o *ProvisionerUIOutput) Output(msg string) { 16 for _, h := range o.Hooks { 17 h.ProvisionOutput(o.InstanceAddr, o.ProvisionerType, msg) 18 } 19} 20