proxmox/proxmox-notify/src
Lukas Wagner d49fc1aa2f notify: make template rendering helpers more robust
This commit has the aim of making template rendering a bit more
robust. It does so by a.) Accepting also strings for helpers that
expect a number, parsing the number if needed, and b.) Ignoring errors
if a template helper fails to render a value and showing an error in
the logs, instead of failing to render the whole template (leading
to no notification being sent).

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2023-08-25 15:32:34 +02:00
..
api notify: cleanup all the imports sections 2023-07-28 11:47:39 +02:00
endpoints notify: cleanup all the imports sections 2023-07-28 11:47:39 +02:00
renderer notify: make template rendering helpers more robust 2023-08-25 15:32:34 +02:00
config.rs notify: cleanup all the imports sections 2023-07-28 11:47:39 +02:00
context.rs notify: cleanup all the imports sections 2023-07-28 11:47:39 +02:00
filter.rs notify: cleanup all the imports sections 2023-07-28 11:47:39 +02:00
group.rs notify: cleanup all the imports sections 2023-07-28 11:47:39 +02:00
lib.rs notify: cleanup all the imports sections 2023-07-28 11:47:39 +02:00
schema.rs notify: sendmail: allow users as recipients 2023-07-24 10:25:57 +02:00