xmpp_cert_sync: keep Jinja out of the script's f-strings
All checks were successful
deploy / ansible (push) Successful in 7m24s
All checks were successful
deploy / ansible (push) Successful in 7m24s
The metric line's {{cert=...}} braces were read as a Jinja expression
and failed the template. Render only the settings, the rest verbatim.
Assisted-by: Claude:opus-5-5
This commit is contained in:
parent
cf142c6e3b
commit
81191c951f
1 changed files with 2 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ KEY = "/root/.ssh/xmpp_cert_sync"
|
|||
KNOWN = "/root/.ssh/xmpp_cert_sync_known_hosts"
|
||||
STATE = "/var/lib/xmpp-cert-sync"
|
||||
PROM = "{{ monitoring_textfile_dir }}/xmpp_cert.prom"
|
||||
{% raw %}
|
||||
|
||||
|
||||
def not_after(pem):
|
||||
|
|
@ -66,3 +67,4 @@ else:
|
|||
with open(PROM + ".tmp", "w") as f:
|
||||
f.write("\n".join(lines) + "\n")
|
||||
os.replace(PROM + ".tmp", PROM)
|
||||
{% endraw %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue