Jinja2 templating: Shows error in output even when successful
So, seems I found a little danger thing here:
No, this is not about my data.
Yes, this is about that it says error, but then does not report an error.
I assume this can cause data loss, but I'm not certain about it.
What I can verify is that the file is being templated (i deleted it, it comes back)
The content looks ok.
I can't tell if its a cosmetic error, but it does not instil trust.
I'll attach all the stuff you need as I go.
#4 Updated by Florian Heigl 8 months ago
That's all. Please let me know if you also get that line saying
R: Templating error:
rudder info: Deleted file '/var/rudder/templates/sshd_config.j2.datastate.4322.json'
R: [INFO] Promise repaired, made a change: Remove file /var/rudder/templates/sshd_config.j2.datastate.4322.json
rudder info: Deleted file '/var/rudder/templates/sshd_config.j2.4322.new'
R: [INFO] Promise repaired, made a change: Remove file /var/rudder/templates/sshd_config.j2.4322.new
I think this is a problem.
#12 Updated by Alexis MOUSSET 8 months ago
- Subject changed from Jinja2 templating: Shows error in output but does not do Error report to Jinja2 templating: Shows error in output even when successful
This has no impact on the behavior of the agent or of Rudder reporting, and was only a wrong message displayed when running the agent with -i or more.
#13 Updated by Alexis MOUSSET 8 months ago
- Status changed from Pending release to Released