This repository was archived by the owner on Jan 21, 2020. It is now read-only.
Description It seems that processing template actions via infrakit template is different from infrakit utils init w.r.t. passing in vars.
For example:
{{ include (cat (var `filename`) `.txt` | nospace ) | jsonDecode }}
processes differently when using the commands:
infrakit template --var filename=... target.json
include action is inside target.json.
infrakit util init --var filename=... target.json
include action is inside the script specified in the InitScriptTemplateURL parameter of target.json
Example repo here
I would expect that both commands does the var replacement from the specified --var in the command line.
However, I observe that only the template command correctly does the var replacement and the utils init command results in an error:
include: open /home/ubuntu/{{var`filename`}}.txt: no such file or directory
Thanks!
Reactions are currently unavailable
It seems that processing template actions via
infrakit templateis different frominfrakit utils initw.r.t. passing in vars.For example:
processes differently when using the commands:
infrakit template --var filename=... target.jsonincludeaction is inside target.json.infrakit util init --var filename=... target.jsonincludeaction is inside the script specified in theInitScriptTemplateURLparameter of target.jsonExample repo here
I would expect that both commands does the
varreplacement from the specified--varin the command line.However, I observe that only the
templatecommand correctly does the var replacement and theutils initcommand results in an error:Thanks!