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