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 |
||
---|---|---|
.. | ||
builder/testing | ||
common | ||
communicator | ||
config | ||
enumflag | ||
flag-kv | ||
flag-slice | ||
multistep | ||
ssh | ||
tests | ||
useragent | ||
wrappedreadline | ||
wrappedstreams |