Skip to content

Commit

Permalink
Should be continue, not return (gruntwork-io#1728)
Browse files Browse the repository at this point in the history
* Should be continue, not return

* Remove plan accidentally checked in files
yorinasub17 authored Jun 19, 2021
1 parent a198d0b commit 6260fdf
Showing 6 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/locals.go
Original file line number Diff line number Diff line change
@@ -207,7 +207,7 @@ func canEvaluate(

// If the variable is `include`, then we can evaluate it now
if var_.RootName() == "include" {
return true
continue
}

// We can't evaluate any variable other than `local`
3 changes: 2 additions & 1 deletion test/fixture-include-expose/child/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -4,7 +4,8 @@ include {
}

locals {
parent_region = include.locals.region
environment = "test"
parent_region = "${include.locals.region}-${local.environment}"
}

inputs = {
Binary file removed test/fixture-stack/disjoint/a/plan.tfplan
Binary file not shown.
Binary file removed test/fixture-stack/disjoint/b/plan.tfplan
Binary file not shown.
Binary file removed test/fixture-stack/disjoint/c/plan.tfplan
Binary file not shown.
2 changes: 1 addition & 1 deletion test/integration_test.go
Original file line number Diff line number Diff line change
@@ -683,7 +683,7 @@ func TestTerragruntWorksWithIncludeLocals(t *testing.T) {

outputs := map[string]TerraformOutput{}
require.NoError(t, json.Unmarshal([]byte(stdout.String()), &outputs))
assert.Equal(t, "us-west-1", outputs["region"].Value.(string))
assert.Equal(t, "us-west-1-test", outputs["region"].Value.(string))
}

func TestTerragruntWorksWithSingleJsonConfig(t *testing.T) {

0 comments on commit 6260fdf

Please sign in to comment.