Merge pull request #1888 from MIBc/master
Invalid APISecret error if only set default api_secret for wechat
This commit is contained in:
commit
d291471f1e
File diff suppressed because one or more lines are too long
|
@ -108,12 +108,11 @@ var (
|
||||||
NotifierConfig: NotifierConfig{
|
NotifierConfig: NotifierConfig{
|
||||||
VSendResolved: false,
|
VSendResolved: false,
|
||||||
},
|
},
|
||||||
Message: `{{ template "wechat.default.message" . }}`,
|
Message: `{{ template "wechat.default.message" . }}`,
|
||||||
APISecret: `{{ template "wechat.default.api_secret" . }}`,
|
ToUser: `{{ template "wechat.default.to_user" . }}`,
|
||||||
ToUser: `{{ template "wechat.default.to_user" . }}`,
|
ToParty: `{{ template "wechat.default.to_party" . }}`,
|
||||||
ToParty: `{{ template "wechat.default.to_party" . }}`,
|
ToTag: `{{ template "wechat.default.to_tag" . }}`,
|
||||||
ToTag: `{{ template "wechat.default.to_tag" . }}`,
|
AgentID: `{{ template "wechat.default.agent_id" . }}`,
|
||||||
AgentID: `{{ template "wechat.default.agent_id" . }}`,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// DefaultVictorOpsConfig defines default values for VictorOps configurations.
|
// DefaultVictorOpsConfig defines default values for VictorOps configurations.
|
||||||
|
|
|
@ -61,7 +61,6 @@ Alerts Resolved:
|
||||||
AlertmanagerUrl:
|
AlertmanagerUrl:
|
||||||
{{ template "__alertmanagerURL" . }}
|
{{ template "__alertmanagerURL" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ define "wechat.default.api_secret" }}{{ end }}
|
|
||||||
{{ define "wechat.default.to_user" }}{{ end }}
|
{{ define "wechat.default.to_user" }}{{ end }}
|
||||||
{{ define "wechat.default.to_party" }}{{ end }}
|
{{ define "wechat.default.to_party" }}{{ end }}
|
||||||
{{ define "wechat.default.to_tag" }}{{ end }}
|
{{ define "wechat.default.to_tag" }}{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue