Files
Packer-Cn/command
Wilken Rivera dbeeab448a cmd/hcl2_upgrade: Generate variable block for all referenced user input variables (#12136)
Currently the HCL2 upgrade command generates a valid variable block for all variables
within the JSON variables property. However JSON templates in Packer support variable
interpolation for input variables defined within a variable definition file without
it being declared within the variables property. When upgrading a JSON template to HCL2
the user variable reference gets converted to var.<var_name>. The upgraded template ultimately
fails on validation or build execution with undefined variable errors, with this change the upgrade
command will now create a variable block for all input variables referenced within the build template
to ensure all required variables been defined.
2022-11-30 15:25:25 -05:00
..
2021-01-20 10:37:16 +01:00
2020-12-17 13:29:25 -08:00
2021-04-19 14:07:22 +02:00
2021-01-20 10:37:16 +01:00
2022-05-17 19:26:34 +02:00
2020-12-17 13:29:25 -08:00
2021-03-12 11:07:26 +01:00
2019-12-17 11:25:56 +01:00
2014-10-27 20:58:44 -07:00