From be56a3a02edaa5896450cde809247569696fadbd Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Mon, 1 Jun 2015 15:29:43 +0200 Subject: [PATCH] Fix interpolation in the Chef provisioner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Turns out to be a pretty obvious bug with a simple fix… --- builtin/provisioners/chef/resource_provisioner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/provisioners/chef/resource_provisioner.go b/builtin/provisioners/chef/resource_provisioner.go index e546588a5..2a8e0def6 100644 --- a/builtin/provisioners/chef/resource_provisioner.go +++ b/builtin/provisioners/chef/resource_provisioner.go @@ -182,7 +182,7 @@ func (r *ResourceProvisioner) decodeConfig(c *terraform.ResourceConfig) (*Provis return nil, err } - if err := dec.Decode(c.Raw); err != nil { + if err := dec.Decode(c.Config); err != nil { return nil, err } @@ -190,7 +190,7 @@ func (r *ResourceProvisioner) decodeConfig(c *terraform.ResourceConfig) (*Provis p.Environment = defaultEnv } - if attrs, ok := c.Raw["attributes"]; ok { + if attrs, ok := c.Config["attributes"]; ok { p.Attributes, err = rawToJSON(attrs) if err != nil { return nil, fmt.Errorf("Error parsing the attributes: %v", err)