polyseam / cndi

Self-Host Cloud-Native Apps with the Ease of PaaS
https://cndi.dev
Apache License 2.0
180 stars 7 forks source link

[Bug]: If a prompt_response is undefined, the template will leave curly braces un #812

Open johnstonmatt opened 8 months ago

johnstonmatt commented 8 months ago

What happened?

CNDI Template parser can leave raw template language artifacts if an undefined response is called for inside of cndi_config.yaml

Version

cndi v2.7.0 kubeseal v0.26.0 terraform v1.5.5

What OS are you seeing the problem on?

No response

OS Details

No response

Relevant log output

No response

Code of Conduct

johnstonmatt commented 4 months ago

What is the desired behavior?

a. leave the {{$cndi.get_prompt_response(foo)}} in place ❌ b. convert the missing variable to an empty string ? c. throw an error ?

I think we want c