mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
MSTeams Notifier: Fix init bug in teamsNotifier (#845)
This commit is contained in:
@@ -10,12 +10,12 @@ import (
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
initers = append(initers, func(cfg map[string]string) Notifier {
|
initers = append(initers, func(cfg map[string]string) Notifier {
|
||||||
url, ok := cfg["slack_url"]
|
url, ok := cfg["teams_url"]
|
||||||
if !ok {
|
if !ok {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
notifier := &slackNotifier{
|
notifier := &teamsNotifier{
|
||||||
URL: url,
|
URL: url,
|
||||||
}
|
}
|
||||||
return notifier
|
return notifier
|
||||||
|
|||||||
Reference in New Issue
Block a user