Fix interpolation in the Chef provisioner

Turns out to be a pretty obvious bug with a simple fix…
This commit is contained in:
Sander van Harmelen 2015-06-01 15:29:43 +02:00
parent 7430fd5a76
commit be56a3a02e
1 changed files with 2 additions and 2 deletions

View File

@ -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)