Details
Description
Core dump encountered while trying to render string from mustache template
Trying to get:
"one": True,"two": True,
I expect this to work, but it doesn't:
root@OH-WIN:/northern.tech/cfengine/core# cat test.cf bundle agent main { vars: "c" data => '[ "one", "two" ]'; "c2" string => string_mustache( '"{{{.}}}": True,', c ); reports: "$(c2)"; } root@OH-WIN:/northern.tech/cfengine/core# /var/cfengine/bin/cf-agent -KI test.cf cf-promises: mustache.c:495: RenderVariable: Assertion `false' failed. Aborted error: Policy failed validation with command '"/var/cfengine/bin/cf-promises" -c "test.cf"' error: Failsafe condition triggered. Interactive session detected, skipping failsafe.cf execution. error: Error reading CFEngine policy. Exiting... root@OH-WIN:/northern.tech/cfengine/core#
Attachments
Issue Links
- relates to
-
CFE-3489 cf-agent: mustache.c: RenderVariable: Assertion `false' failed.
-
- Done
-