packer-cn/hcl2template/testdata
Megan Marsh fbbda0f9d9
Sensitive locals (#10509)
* Allow locals to be delcared as individual blocks, and give them the Sensitive flag

* add docs for new local block

* linting

* add tests

* modified parsing to use schema, check for dupes properly

* update comment

fix wording a liiitle

* add tests for duplicate variables definition in two different files

* remove unnecessary slice initialisation

* fix crash by returning when decode error is hit

* parseLocalVariables: only treat a local vars if its not nil

also return in case of error
return locals in case of error too

* fix duplicate_locals test for windows

Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2021-01-26 10:21:44 +01:00
..
build add test 2020-09-30 12:02:52 +02:00
build.pkr.hcl HCL2: when we see a map generate an attribute spec instead of a block spec (#9035) 2020-04-14 16:05:13 +02:00
communicator HCL2: when we see a map generate an attribute spec instead of a block spec (#9035) 2020-04-14 16:05:13 +02:00
complete Sensitive locals (#10509) 2021-01-26 10:21:44 +01:00
datasources (2) Implement datasources (#10440) 2021-01-20 10:37:16 +01:00
empty better empty folder test 2020-01-06 16:09:44 +01:00
format command/fmt: Ensure all variable files ending in `.pkrvars.hcl` get formatted (#10377) 2020-12-14 10:29:58 -05:00
sources HCL2: when we see a map generate an attribute spec instead of a block spec (#9035) 2020-04-14 16:05:13 +02:00
unknown remove unecessary inexistant block panic + add test 2020-01-06 16:56:42 +01:00
variables Sensitive locals (#10509) 2021-01-26 10:21:44 +01:00