From 739f23f0fcbf6dceeaf39d5af9839bcbc6b2f31b Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Wed, 25 Sep 2013 16:13:39 +0200 Subject: [PATCH] config conversion: Rename dependencies. refs #4741 --- tools/configconvert/Icinga2/Convert.pm | 1 - tools/configconvert/Icinga2/ExportIcinga2Cfg.pm | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/configconvert/Icinga2/Convert.pm b/tools/configconvert/Icinga2/Convert.pm index c39310e37..fa82f191c 100644 --- a/tools/configconvert/Icinga2/Convert.pm +++ b/tools/configconvert/Icinga2/Convert.pm @@ -2351,7 +2351,6 @@ sub convert_2x { $notification->{$notification_key}->{'__I2CONVERT_NOTIFICATION_FILTERS'} = $cfg_obj_2x->{'service'}->{$service_obj_2x_key}->{'__I2CONVERT_NOTIFICATION_FILTERS'}; $notification->{$notification_key}->{'__I2CONVERT_NOTIFICATION_INTERVAL'} = $cfg_obj_2x->{'service'}->{$service_obj_2x_key}->{'notification_interval'}; $notification->{$notification_key}->{'__I2CONVERT_NOTIFICATION_PERIOD'} = $cfg_obj_2x->{'service'}->{$service_obj_2x_key}->{'notification_period'}; - say Dumper($notification); } } #say Dumper($obj_2x_service); diff --git a/tools/configconvert/Icinga2/ExportIcinga2Cfg.pm b/tools/configconvert/Icinga2/ExportIcinga2Cfg.pm index 49ee8f152..b06a8c7ea 100644 --- a/tools/configconvert/Icinga2/ExportIcinga2Cfg.pm +++ b/tools/configconvert/Icinga2/ExportIcinga2Cfg.pm @@ -357,7 +357,7 @@ sub dump_service_2x { # servicedependencies (1.x deps) #################################################### if(defined($service_2x->{'__I2CONVERT_PARENT_SERVICES'})) { - dump_config_line($icinga2_cfg, "\tservicedependencies = ["); + dump_config_line($icinga2_cfg, "\tservice_dependencies = ["); #say Dumper($service_2x); # this is a hash with keys @@ -551,7 +551,7 @@ sub dump_host_2x { #################################################### if(defined($host_2x->{'__I2CONVERT_PARENT_HOSTNAMES'})) { my $hostdependency_hosts = join '", "', @{$host_2x->{'__I2CONVERT_PARENT_HOSTNAMES'}}; - dump_config_line($icinga2_cfg, "\thostdependencies = [ \"$hostdependency_hosts\" ],"); + dump_config_line($icinga2_cfg, "\thost_dependencies = [ \"$hostdependency_hosts\" ],"); } #################################################### -- 2.40.0