Skip to content
Snippets Groups Projects
Commit ec5904d6 authored by Jan-hinnerk Vogel's avatar Jan-hinnerk Vogel
Browse files

flag $no_clear introduced in sub load_all to avoid conflict if Registry is

used together with pipline code ( prevent that dbcon to pipeline db will be cleared as well)
parent ab04e445
No related branches found
No related tags found
No related merge requests found
......@@ -135,10 +135,13 @@ sub load_all{
my $class = shift;
my $conf_file = shift;
my $verbose = shift;
my $no_clear = shift ;
if(defined($registry_register{'seen'})){
print STDERR "Clearing previuosly loaded configuration from Registry\n" if ($verbose);
$class->clear();
if(defined($registry_register{'seen'})){
unless ( $no_clear ) {
print STDERR "Clearing previuosly loaded configuration from Registry\n" if ($verbose);
$class->clear();
}
}
$registry_register{'seen'}=1;
if(defined($conf_file)){
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment