dump_config_line($icinga2_cfg, "\tmacros += {");
foreach my $custom_key (keys %{$service_2x->{'__I2CONVERT_CUSTOM_ATTR'}}) {
- if ($custom_key =~ /^_/) {
+ if ($custom_key !~ /^_/) {
next;
}
dump_config_line($icinga2_cfg, "\tmacros += {");
foreach my $custom_key (keys %{$host_2x->{'__I2CONVERT_CUSTOM_ATTR'}}) {
- if ($custom_key =~ /^_/) {
+ if ($custom_key !~ /^_/) {
next;
}
dump_config_line($icinga2_cfg, "\t\tmacros += {");
foreach my $custom_key (keys %{$service_2x->{'__I2CONVERT_CUSTOM_ATTR'}}) {
- if ($custom_key =~ /^_/) {
+ if ($custom_key !~ /^_/) {
next;
}
dump_config_line($icinga2_cfg, "\tmacros += {");
foreach my $custom_key (keys %{$user_2x->{'__I2CONVERT_CUSTOM_ATTR'}}) {
- if ($custom_key =~ /^_/) {
+ if ($custom_key !~ /^_/) {
next;
}