mirror of https://github.com/hashicorp/packer
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>pull/10531/head
parent
ea7fef699f
commit
fbbda0f9d9
@ -0,0 +1,4 @@
|
||||
|
||||
local "sensible" {
|
||||
expression = "something"
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
|
||||
local "sensible" {
|
||||
expression = "something"
|
||||
}
|
||||
Loading…
Reference in new issue