Skip to content

Commit f3c8cf7

Browse files
authored
Exporter: fix suppression of empty webhook_notifications blocks in tasks (#2954)
1 parent d27d396 commit f3c8cf7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exporter/importables.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,9 +598,9 @@ var resourcesMap map[string]importable = map[string]importable{
598598
return reflect.DeepEqual(*js.Tasks[taskIndex].EmailNotifications,
599599
sdk_jobs.TaskEmailNotifications{})
600600
}
601-
case "webhooks_notifications":
602-
if js.Tasks[taskIndex].EmailNotifications != nil {
603-
return reflect.DeepEqual(*js.Tasks[taskIndex].EmailNotifications,
601+
case "webhook_notifications":
602+
if js.Tasks[taskIndex].WebhookNotifications != nil {
603+
return reflect.DeepEqual(*js.Tasks[taskIndex].WebhookNotifications,
604604
sdk_jobs.WebhookNotifications{})
605605
}
606606
}

0 commit comments

Comments
 (0)