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 }}
|
||||
reason: BackupFailed
|
||||
type: Warning
|
||||
firstTimestamp: {{ now }}
|
||||
lastTimestamp: {{ now }}
|
||||
firstTimestamp: "{{ now }}"
|
||||
lastTimestamp: "{{ now }}"
|
||||
count: 1
|
||||
|
||||
@@ -12,6 +12,6 @@ involvedObject:
|
||||
message: {{ error_msg }}
|
||||
reason: RestoreFailed
|
||||
type: Warning
|
||||
firstTimestamp: {{ now }}
|
||||
lastTimestamp: {{ now }}
|
||||
firstTimestamp: "{{ now }}"
|
||||
lastTimestamp: "{{ now }}"
|
||||
count: 1
|
||||
|
||||
Reference in New Issue
Block a user