Hi,

Revamping a few scripts that I use with amanda-3.3.x in prevision of
transitioning to 3.4.1 and one is using a call to
Amanda::Config::getconf($CNF_LABELSTR). 

With Amanda-3.3.5 I get a simple string:
 
perl code:
 my $labelStr = Amanda::Config::getconf($CNF_LABELSTR);
 print "DEBUG: Got tape label to match => $labelStr\n";

output:
 DEBUG: Got tape label to match => ^neo400-1_charm_[0-9][0-9]*

but with 3.4.1 I get a ref to a hash and iterating through its keys I
get:

perl code: 
 my $labelStr = Amanda::Config::getconf($CNF_LABELSTR);
 print "DEBUG: Got tape label to match => $labelStr\n";
 foreach my $key ( keys %$labelStr) {
     print "DEBUG: labelStr: $key $labelStr->{$key}\n";
 }

output:
 DEBUG: Got tape label to match => HASH(0x26b3888)
 DEBUG: labelStr: match_autolabel 
 DEBUG: labelStr: template ^NEO-T48-B[0-9][0-9]*

Where is this documented? 
I looked at $amperldir/Amanda/Config.pm and I see nothing obvious...

cheers,
jf

Reply via email to