mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
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:
@@ -12,6 +12,6 @@ involvedObject:
|
|||||||
message: {{ error_msg }}
|
message: {{ error_msg }}
|
||||||
reason: BackupFailed
|
reason: BackupFailed
|
||||||
type: Warning
|
type: Warning
|
||||||
firstTimestamp: {{ now }}
|
firstTimestamp: "{{ now }}"
|
||||||
lastTimestamp: {{ now }}
|
lastTimestamp: "{{ now }}"
|
||||||
count: 1
|
count: 1
|
||||||
|
|||||||
@@ -12,6 +12,6 @@ involvedObject:
|
|||||||
message: {{ error_msg }}
|
message: {{ error_msg }}
|
||||||
reason: RestoreFailed
|
reason: RestoreFailed
|
||||||
type: Warning
|
type: Warning
|
||||||
firstTimestamp: {{ now }}
|
firstTimestamp: "{{ now }}"
|
||||||
lastTimestamp: {{ now }}
|
lastTimestamp: "{{ now }}"
|
||||||
count: 1
|
count: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user