Update for go 1.15

This commit is contained in:
IamTheFij 2020-11-16 15:56:31 -08:00
parent 0a5be250b5
commit a1b906b94a

View File

@ -55,7 +55,7 @@ func (alert *Alert) BuildTemplates() error {
cmdPart = legacy.Replace(cmdPart) cmdPart = legacy.Replace(cmdPart)
} }
alert.commandTemplate = append(alert.commandTemplate, template.Must( 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 != "" { } else if alert.commandShellTemplate == nil && alert.Command.ShellCommand != "" {