mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-19 06:21:41 -04:00
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.