From d7a1f3dc0e89e63c01488a4ca25077235d2608f4 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 4 Oct 2014 10:38:46 -0700 Subject: [PATCH] terraform: prefix the provisioner output --- terraform/context.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/terraform/context.go b/terraform/context.go index f7ab9145d..7e6480562 100644 --- a/terraform/context.go +++ b/terraform/context.go @@ -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 }