• Adrien Delorme's avatar
    refactor initialization out from packer configs + tests (#9627) · 44616d3b
    Adrien Delorme authored
    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
    44616d3b