This is an automated email from the ASF dual-hosted git repository.
lynwee pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 6a9c0eb4d fix: pagerduty task always fails (#7584)
6a9c0eb4d is described below
commit 6a9c0eb4d28a80e1302ba5e1c73e8dc5cfc371bc
Author: Klesh Wong <[email protected]>
AuthorDate: Thu Jun 6 16:16:19 2024 +0800
fix: pagerduty task always fails (#7584)
---
backend/plugins/pagerduty/tasks/task_data.go | 3 ---
1 file changed, 3 deletions(-)
diff --git a/backend/plugins/pagerduty/tasks/task_data.go
b/backend/plugins/pagerduty/tasks/task_data.go
index 41d42e426..814e42c97 100644
--- a/backend/plugins/pagerduty/tasks/task_data.go
+++ b/backend/plugins/pagerduty/tasks/task_data.go
@@ -74,9 +74,6 @@ func EncodeTaskOptions(op *PagerDutyOptions)
(map[string]interface{}, errors.Err
}
func ValidateTaskOptions(op *PagerDutyOptions) errors.Error {
- if op.ServiceName == "" {
- return errors.BadInput.New("not enough info for Pagerduty
execution")
- }
if op.ServiceId == "" {
return errors.BadInput.New("not enough info for Pagerduty
execution")
}