Describe the bug
The behavior of empty variables changes depending on whether a --var is passed into the invocation of boilerplate or not.
If the boilerplate.yml has a variable with a default value of "" and no --var is passed in to determine the value, an empty string is stamped out into the output folder.
If a --var is populated with an empty string, --var EmptyVariable='' it will stamp out <no value>.
If a --var is populated with an empty string inside an empty string, --var EmptyVariable='""' it will stamp out an empty string.
Using the missing-key-action zero does not change this behavior.
To Reproduce
Take a look at the branch bug/missing-key-action-ignored.
Describe the bug The behavior of empty variables changes depending on whether a
--var
is passed into the invocation ofboilerplate
or not.If the
boilerplate.yml
has a variable with a default value of""
and no--var
is passed in to determine the value, an empty string is stamped out into the output folder.If a
--var
is populated with an empty string,--var EmptyVariable=''
it will stamp out<no value>
.If a
--var
is populated with an empty string inside an empty string,--var EmptyVariable='""'
it will stamp out an empty string.Using the
missing-key-action zero
does not change this behavior.To Reproduce Take a look at the branch
bug/missing-key-action-ignored
.In this branch, the following command was run:
Expected behavior In this example, a user likely expects for an empty string to be stamped out into the target output folder.
Nice to have
bug/missing-key-action-ignored