diff --git a/builtin/provisioners/local-exec/resource_provisioner.go b/builtin/provisioners/local-exec/resource_provisioner.go index 7c8e01230..d8e157892 100644 --- a/builtin/provisioners/local-exec/resource_provisioner.go +++ b/builtin/provisioners/local-exec/resource_provisioner.go @@ -24,7 +24,7 @@ func (p *ResourceProvisioner) Apply( c *terraform.ResourceConfig) (*terraform.ResourceState, error) { // Get the command - commandRaw, ok := c.Get("command") + commandRaw, ok := c.Config["command"] if !ok { return s, fmt.Errorf("local-exec provisioner missing 'command'") }