diff --git a/config/interpolate.go b/config/interpolate.go index 77bc15117..0b0bfc460 100644 --- a/config/interpolate.go +++ b/config/interpolate.go @@ -196,7 +196,8 @@ func (i *VariableInterpolation) Interpolate( v, ok := vs[i.key] if !ok { return "", fmt.Errorf( - "%s: value for variable '%s' not found", v) + "%s: value for variable not found", + i.key) } return v, nil diff --git a/terraform/context_test.go b/terraform/context_test.go index 1cf797c7e..9d161ea6b 100644 --- a/terraform/context_test.go +++ b/terraform/context_test.go @@ -1168,10 +1168,6 @@ func TestContextPlan_computed(t *testing.T) { t.Fatalf("err: %s", err) } - if len(plan.Diff.Resources) < 2 { - t.Fatalf("bad: %#v", plan.Diff.Resources) - } - actual := strings.TrimSpace(plan.String()) expected := strings.TrimSpace(testTerraformPlanComputedStr) if actual != expected { diff --git a/terraform/test-fixtures/apply-compute/main.tf b/terraform/test-fixtures/apply-compute/main.tf index 3999b5912..8fe55ed17 100644 --- a/terraform/test-fixtures/apply-compute/main.tf +++ b/terraform/test-fixtures/apply-compute/main.tf @@ -1,3 +1,7 @@ +variable "value" { + default = "" +} + resource "aws_instance" "foo" { num = "2" compute = "dynamical"