Merge pull request #2168 from svanharmelen/b-chef-provisioner-interpolation
provisioner/chef: fix interpolation in the Chef provisioner
This commit is contained in:
commit
6a8456c911
|
@ -182,7 +182,7 @@ func (r *ResourceProvisioner) decodeConfig(c *terraform.ResourceConfig) (*Provis
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := dec.Decode(c.Raw); err != nil {
|
if err := dec.Decode(c.Config); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@ func (r *ResourceProvisioner) decodeConfig(c *terraform.ResourceConfig) (*Provis
|
||||||
p.Environment = defaultEnv
|
p.Environment = defaultEnv
|
||||||
}
|
}
|
||||||
|
|
||||||
if attrs, ok := c.Raw["attributes"]; ok {
|
if attrs, ok := c.Config["attributes"]; ok {
|
||||||
p.Attributes, err = rawToJSON(attrs)
|
p.Attributes, err = rawToJSON(attrs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("Error parsing the attributes: %v", err)
|
return nil, fmt.Errorf("Error parsing the attributes: %v", err)
|
||||||
|
|
Loading…
Reference in New Issue