The problem is that now Config::Inifiles will throw an error when setval() is called on a property that doesn't yet exist, so replace_config_keys.pl will not run, e.g.:
Died with 'Couldn't add key $; PIPELINEID $;=22 to section
[component]' at /opt/ergatis/bin/replace_config_keys.pl line 241
I fixed it on my setup by changing parts of replace_config_keys.pl that look like this (at ~line 62 and in the add_keys sub at the end):
my $ret = $cfg->setval('component',$delimeter.'COMPONENT_CONFIG'.$delimeter,$options{'output_conf'});
if(!$ret){
$logger->logdie("Couldn't add key ${delimeter}COMPONENT_CONFIG$delimeter=$options{'output_conf'}to section [component]");
}
with something like:
my $ret = $cfg->setval('component',$delimeter.'COMPONENT_CONFIG'.$delimeter,$options{'output_conf'});
if(!$ret){
$cfg->newval('component',$delimeter.'COMPONENT_CONFIG'.$delimeter,$options{'output_conf'});
#$logger->logdie("Couldn't add key ${delimeter}COMPONENT_CONFIG$delimeter=$options{'output_conf'}to section [component]");
}
Hi Jason,
I am running Config::IniFiles version 2.68 and cannot replicate this bug. Can you provide a little more information - were you running a component packaged in with Ergatis or a custom component when this bug occured?