Invalid APISecret error if only set default api_secret for wechat
Signed-off-by: lvjiawei <lvjiawei@cmss.chinamobile.com>
This commit is contained in:
parent
6749f9faa9
commit
46a59f12d5
File diff suppressed because one or more lines are too long
|
@ -105,12 +105,11 @@ var (
|
|||
NotifierConfig: NotifierConfig{
|
||||
VSendResolved: false,
|
||||
},
|
||||
Message: `{{ template "wechat.default.message" . }}`,
|
||||
APISecret: `{{ template "wechat.default.api_secret" . }}`,
|
||||
ToUser: `{{ template "wechat.default.to_user" . }}`,
|
||||
ToParty: `{{ template "wechat.default.to_party" . }}`,
|
||||
ToTag: `{{ template "wechat.default.to_tag" . }}`,
|
||||
AgentID: `{{ template "wechat.default.agent_id" . }}`,
|
||||
Message: `{{ template "wechat.default.message" . }}`,
|
||||
ToUser: `{{ template "wechat.default.to_user" . }}`,
|
||||
ToParty: `{{ template "wechat.default.to_party" . }}`,
|
||||
ToTag: `{{ template "wechat.default.to_tag" . }}`,
|
||||
AgentID: `{{ template "wechat.default.agent_id" . }}`,
|
||||
}
|
||||
|
||||
// DefaultVictorOpsConfig defines default values for VictorOps configurations.
|
||||
|
|
|
@ -61,7 +61,6 @@ Alerts Resolved:
|
|||
AlertmanagerUrl:
|
||||
{{ template "__alertmanagerURL" . }}
|
||||
{{- end }}
|
||||
{{ define "wechat.default.api_secret" }}{{ end }}
|
||||
{{ define "wechat.default.to_user" }}{{ end }}
|
||||
{{ define "wechat.default.to_party" }}{{ end }}
|
||||
{{ define "wechat.default.to_tag" }}{{ end }}
|
||||
|
|
Loading…
Reference in New Issue