Merge pull request #14060 from zhasm/hotfix/zhengyu-notify-template-update

fix(notify): 通知模板更新
This commit is contained in:
Zexi Li
2022-04-18 15:58:02 +08:00
committed by GitHub
4 changed files with 15 additions and 6 deletions
@@ -1,14 +1,13 @@
{{- $d := .resource_details -}}
{{- if eq .resource_type "db_table_field" }}
数据库{{ $d.db_name }}表{{ $d.table_name }}记录{{ $d.name }}被修改,
数据库{{ $d.db_name }}表{{ $d.table_name }}记录{{ $d.name }}被修改,完整性校验失败
{{- end -}}
{{- if eq .resource_type "cloudpods_component" }}
组件{{ $d.name }}
{{ $d.details }}
{{- end -}}
{{- if eq .resource_type "snapshot" }}
快照{{ $d.name }}的内存快照
快照{{ $d.name }}的内存快照完整性校验失败
{{- end -}}
{{- if eq .resource_type "image" }}
镜像{{ $d.name }}
镜像{{ $d.name }}完整性校验失败
{{- end -}}
完整性校验失败
@@ -3,7 +3,7 @@
The record {{ $d.name }} in table {{ $d.table_name }} of the database {{ $d.db_name }} has been modified because the checksum test failed.
{{- end -}}
{{- if eq .resource_type "cloudpods_component" }}
The checksum of cloudpods component {{ $d.name }} test failed.
{{ $d.details }}
{{- end -}}
{{- if eq .resource_type "snapshot" }}
The checksum of the memory snapshot of the snapshot {{ $d.name }} test failed.
@@ -1 +1,6 @@
{{- $d := .resource_details -}}
{{- if eq .resource_type "cloudpods_component" }}
{{ $d.title }}
{{- else -}}
{{ .resource_type_display }}完整性校验失败
{{- end -}}
@@ -1 +1,6 @@
{{- $d := .resource_details -}}
{{- if eq .resource_type "cloudpods_component" }}
{{ $d.title }}
{{- else -}}
The checksum of {{ .resource_type_display }} test failed
{{- end -}}