export init notifier func

makes it possible to validate that an notifier can be
initialzed from the provisioning package
This commit is contained in:
bergquist
2018-12-19 13:38:49 +01:00
parent a6d90151da
commit 69489993c3
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ func handleNotificationTestCommand(cmd *NotificationTestCommand) error {
Settings: cmd.Settings,
}
notifiers, err := notifier.createNotifierFor(model)
notifiers, err := InitNotifier(model)
if err != nil {
log.Error2("Failed to create notifier", "error", err.Error())