fix(server): remove serviceNow handler workaround

pull/5740/head
Pavel Zavora 2021-05-07 06:11:28 +02:00
parent 383dca4ff2
commit 07a8b25947
1 changed files with 1 additions and 11 deletions

View File

@ -19,17 +19,7 @@ func AlertServices(rule chronograf.AlertRule) (string, error) {
}
if err := ValidateAlert(node); err != nil {
// workaround for not-yet released fix https://github.com/influxdata/kapacitor/pull/2488
// it can be deleted once kapacitor 1.5.9+ is released
// can be simply: return "", err
if !strings.Contains(err.Error(), `property "servicenow"`) {
return "", err
}
// no method or property "servicenow" on *pipeline.AlertNode
node = strings.Replace(node, ".servicenow()", ".serviceNow()", 1)
if err2 := ValidateAlert(node); err2 != nil {
return "", err
}
return "", err
}
return node, nil
}