From: Michael Friedrich Date: Thu, 29 Aug 2013 12:39:58 +0000 (+0200) Subject: Config Conversion: always add type NotificationFilterProblem. X-Git-Tag: v0.0.3~657 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de159b013399cda2db1664215e15dcb4f1dd11f5;p=icinga2 Config Conversion: always add type NotificationFilterProblem. --- 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};