mirror of
https://github.com/prometheus/alertmanager
synced 2025-01-30 10:11:52 +00:00
fix wechat issue (#1293)
This commit is contained in:
parent
bd04da5480
commit
b4048f46bc
@ -266,6 +266,10 @@ func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
||||
}
|
||||
}
|
||||
for _, wcc := range rcv.WechatConfigs {
|
||||
if wcc.HTTPConfig == nil {
|
||||
wcc.HTTPConfig = c.Global.HTTPConfig
|
||||
}
|
||||
|
||||
if wcc.APIURL == "" {
|
||||
if c.Global.WeChatAPIURL == "" {
|
||||
return fmt.Errorf("no global Wechat URL set")
|
||||
|
Loading…
Reference in New Issue
Block a user