Update for go 1.15
This commit is contained in:
parent
0a5be250b5
commit
a1b906b94a
2
alert.go
2
alert.go
@ -55,7 +55,7 @@ func (alert *Alert) BuildTemplates() error {
|
||||
cmdPart = legacy.Replace(cmdPart)
|
||||
}
|
||||
alert.commandTemplate = append(alert.commandTemplate, template.Must(
|
||||
template.New(alert.Name+string(i)).Parse(cmdPart),
|
||||
template.New(alert.Name+fmt.Sprint(i)).Parse(cmdPart),
|
||||
))
|
||||
}
|
||||
} else if alert.commandShellTemplate == nil && alert.Command.ShellCommand != "" {
|
||||
|
Loading…
Reference in New Issue
Block a user