mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-27 08:32:15 +00:00
Merge pull request #443 from prometheus/fabxc-empty-slack
config: make Slack channel optional
This commit is contained in:
commit
66142a9115
@ -227,9 +227,6 @@ func (c *SlackConfig) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
||||
if err := unmarshal((*plain)(c)); err != nil {
|
||||
return err
|
||||
}
|
||||
if c.Channel == "" {
|
||||
return fmt.Errorf("missing channel in Slack config")
|
||||
}
|
||||
return checkOverflow(c.XXX, "slack config")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user