Skip to content
Snippets Groups Projects
Commit 0fc11228 authored by Phaidra Developers (phkug03)'s avatar Phaidra Developers (phkug03)
Browse files

method to access other collections

parent 0c733a3b
Branches
No related tags found
No related merge requests found
......@@ -158,6 +158,24 @@ sub read_config
1;
}
sub get_collection
{
my $self= shift;
my $name= shift;
my $col_handle= '_'. $name;
return $self->{$col_handle} if (exists($self->{$col_handle}));
my $mon_cfg= $self->{mon_cfg};
my $paf= $mon_cfg->{'AgentDB'};
my $col_name= setup_default_collection ($paf, $name);
my $mdb= $self->{_mdb};
my $col= $mdb->get_collection($col_name);
$self->{$col_handle}= $col;
$col;
}
sub get_config
{
my $obj= shift;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment