mirror of https://github.com/hashicorp/packer
Update handling of image metadata before pushing to registry (#11458)
When obtaining image metadata for a HCP Packer build, Packer core will use mapstructure to decode the image metadata and validate that is has all of the required data set. Before this change Packer core would fail if there is extra metadata fields in the image metadata that Packer is not aware. This change removes the restriction of erroring on unused metadata fields. Packer should only care about the fields it knows and ignore the rest. In the future, we will add new fields to the SDK but plugins may begin sending that data sooner.pull/11460/head
parent
6176d79913
commit
b6f02d3f77
Loading…
Reference in new issue