diff options
author | Alexandre Garand <alexandre.garand@fretlink.com> | 2019-08-09 15:59:15 +0200 |
---|---|---|
committer | Alexandre Garand <alexandre.garand@fretlink.com> | 2019-08-09 16:39:21 +0200 |
commit | 863486a6b71ed0e562a3965bed56465d007b1418 (patch) | |
tree | e93f6a687695af86d54237ec9f575d4ef104222d /vendor/github.com/hashicorp/hcl2/hcl/json/structure.go | |
parent | 49c1c7b4dc69ffb9ab52330e6dc52ccdd6351087 (diff) | |
download | terraform-provider-statuscake-863486a6b71ed0e562a3965bed56465d007b1418.tar.gz terraform-provider-statuscake-863486a6b71ed0e562a3965bed56465d007b1418.tar.zst terraform-provider-statuscake-863486a6b71ed0e562a3965bed56465d007b1418.zip |
update vendor and go.modadd_contact_groups
Diffstat (limited to 'vendor/github.com/hashicorp/hcl2/hcl/json/structure.go')
-rw-r--r-- | vendor/github.com/hashicorp/hcl2/hcl/json/structure.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/github.com/hashicorp/hcl2/hcl/json/structure.go b/vendor/github.com/hashicorp/hcl2/hcl/json/structure.go index bdc0e98..74847c7 100644 --- a/vendor/github.com/hashicorp/hcl2/hcl/json/structure.go +++ b/vendor/github.com/hashicorp/hcl2/hcl/json/structure.go | |||
@@ -416,12 +416,14 @@ func (e *expression) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { | |||
416 | case *booleanVal: | 416 | case *booleanVal: |
417 | return cty.BoolVal(v.Value), nil | 417 | return cty.BoolVal(v.Value), nil |
418 | case *arrayVal: | 418 | case *arrayVal: |
419 | var diags hcl.Diagnostics | ||
419 | vals := []cty.Value{} | 420 | vals := []cty.Value{} |
420 | for _, jsonVal := range v.Values { | 421 | for _, jsonVal := range v.Values { |
421 | val, _ := (&expression{src: jsonVal}).Value(ctx) | 422 | val, valDiags := (&expression{src: jsonVal}).Value(ctx) |
422 | vals = append(vals, val) | 423 | vals = append(vals, val) |
424 | diags = append(diags, valDiags...) | ||
423 | } | 425 | } |
424 | return cty.TupleVal(vals), nil | 426 | return cty.TupleVal(vals), diags |
425 | case *objectVal: | 427 | case *objectVal: |
426 | var diags hcl.Diagnostics | 428 | var diags hcl.Diagnostics |
427 | attrs := map[string]cty.Value{} | 429 | attrs := map[string]cty.Value{} |