44616d3bff
The initialization of packer core in JSON also validates that `null` variables were set, except in the case of `packer validate --syntax-only` , but after the refactor to allow to have all commands work with HCL2 and JSON this subtlety was lost. This refactors the initialisation of the core in order to allow to have `packer validate --syntax-only` not error in case a variable is not set. Since these calls are refactored this works for HCL2 too. fix #9478 |
||
---|---|---|
.. | ||
build-name-and-type | ||
build-only | ||
build-variable-sharing | ||
cleanup-script | ||
fix | ||
fix-invalid | ||
hcl | ||
hcl-only-except | ||
parallel | ||
timeout | ||
validate | ||
validate-invalid | ||
var-arg |