diff --git a/builtin/provisioners/chef/resource_provisioner.go b/builtin/provisioners/chef/resource_provisioner.go index 07c2812aa..6bf6d6d98 100644 --- a/builtin/provisioners/chef/resource_provisioner.go +++ b/builtin/provisioners/chef/resource_provisioner.go @@ -23,7 +23,7 @@ import ( const ( clienrb = "client.rb" - defaultChefEnv = "_default" + defaultEnv = "_default" firstBoot = "first-boot.json" logfileDir = "logfiles" linuxConfDir = "/etc/chef" @@ -186,7 +186,7 @@ func (r *ResourceProvisioner) decodeConfig(c *terraform.ResourceConfig) (*Provis } if p.Environment == "" { - p.Environment = defaultChefEnv + p.Environment = defaultEnv } if attrs, ok := c.Raw["attributes"]; ok {