Commit graph

1 commit

Author SHA1 Message Date
Lucas Bajolet
6ab16561b5
hcl2: fix crash on malformed overrides (#11881)
When an override block is either not an object, or if one of its
contents are not an object, Packer would crash trying to forcefully
cast the cty.Value to a cty.Collection.

To avoid this behaviour, we add extra checks that return hcl.Diagnostics
when they fail.
2022-07-20 14:30:49 -04:00