Fix unquoted timestamps in backup/restore event templates (#2110)

Quote {{ now }} in firstTimestamp and lastTimestamp to prevent
YAML parser from converting the value to a datetime object.

Assisted-by: Claude

Signed-off-by: Lucas Benedito <lbenedit@redhat.com>
This commit is contained in:
Lucas Benedito
2026-03-23 18:11:54 +00:00
committed by GitHub
parent 56f10cf966
commit 5697feea57
2 changed files with 4 additions and 4 deletions

View File

@@ -12,6 +12,6 @@ involvedObject:
message: {{ error_msg }}
reason: BackupFailed
type: Warning
firstTimestamp: {{ now }}
lastTimestamp: {{ now }}
firstTimestamp: "{{ now }}"
lastTimestamp: "{{ now }}"
count: 1

View File

@@ -12,6 +12,6 @@ involvedObject:
message: {{ error_msg }}
reason: RestoreFailed
type: Warning
firstTimestamp: {{ now }}
lastTimestamp: {{ now }}
firstTimestamp: "{{ now }}"
lastTimestamp: "{{ now }}"
count: 1