mirror of https://github.com/Icinga/icinga2.git
Config Conversion: Skip ARGn macros on Command object export.
This commit is contained in:
parent
4d95eaa6c5
commit
dc0f2e2fa9
|
@ -1094,15 +1094,13 @@ sub dump_command_2x {
|
|||
if(defined($command_2x->{'__I2CONVERT_COMMAND_MACROS'}) && $command_2x->{'__I2CONVERT_COMMAND_MACROS'} != 0) {
|
||||
dump_config_line($icinga2_cfg, "\tmacros = {");
|
||||
foreach my $cmd_arg (keys %{$command_2x->{'__I2CONVERT_COMMAND_MACROS'}}) {
|
||||
next if $cmd_arg =~ /ARG\d+/;
|
||||
dump_config_line($icinga2_cfg, "\t\t$cmd_arg = \"$command_2x->{'__I2CONVERT_COMMAND_MACROS'}->{$cmd_arg}\",");
|
||||
}
|
||||
dump_config_line($icinga2_cfg, "\t},");
|
||||
}
|
||||
|
||||
dump_config_line($icinga2_cfg, "");
|
||||
|
||||
dump_config_line($icinga2_cfg, "");
|
||||
|
||||
dump_config_line($icinga2_cfg, "}");
|
||||
dump_config_line($icinga2_cfg, "\n");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue