Skip to content

Commit

Permalink
Readd call to bodyConvertors
Browse files Browse the repository at this point in the history
  • Loading branch information
angrycub committed May 17, 2024
1 parent 9c6cf13 commit 55d9c02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gohcl/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ func (d *Decoder) decodeBodyToValue(body hcl.Body, ctx *hcl.EvalContext, val ref
}

func (d *Decoder) decodeBodyToStruct(body hcl.Body, ctx *hcl.EvalContext, val reflect.Value) hcl.Diagnostics {
if fn, ok := d.bodyConvertors[val.Type()]; ok {
return fn(body, ctx, val.Addr().Interface())
}

schema, partial := ImpliedBodySchema(val.Interface())

var content *hcl.BodyContent
Expand Down

0 comments on commit 55d9c02

Please sign in to comment.