From de159b013399cda2db1664215e15dcb4f1dd11f5 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 29 Aug 2013 14:39:58 +0200 Subject: [PATCH] Config Conversion: always add type NotificationFilterProblem. --- tools/configconvert/Icinga2/Convert.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/configconvert/Icinga2/Convert.pm b/tools/configconvert/Icinga2/Convert.pm index 741344c76..fa6fa8e2a 100644 --- a/tools/configconvert/Icinga2/Convert.pm +++ b/tools/configconvert/Icinga2/Convert.pm @@ -845,6 +845,10 @@ sub convert_notification_options_to_filter { push @{$filter->{'type'}}, 0; return $filter; } + + # always add NotificationFilterProblem + push @{$filter->{'type'}}, 'NotificationFilterProblem'; + if (grep /a/, @options) { foreach my $by (keys %{$filter_by}) { push @{$filter->{$filter_by->{$by}}}, $filter_names->{$by}; -- 2.40.0