fix tools

This commit is contained in:
fbsanchez 2019-11-18 10:40:02 +01:00
parent 4a05cbb544
commit 1cacbbc08f
1 changed files with 9 additions and 3 deletions

View File

@ -499,11 +499,17 @@ sub credential_store_get_key($$$) {
my ($pa_config, $dbh, $identifier) = @_;
my $sql = 'SELECT * FROM tcredential_store WHERE identifier = ?';
my $key = get_db_single_row($dbh, $sql, $identifier);
my $key = PandoraFMS::DB::get_db_single_row($dbh, $sql, $identifier);
return {
'username' => pandora_output_password($pa_config, $key->{'username'}),
'password' => pandora_output_password($pa_config, $key->{'password'}),
'username' => PandoraFMS::Core::pandora_output_password(
$pa_config,
$key->{'username'}
),
'password' => PandoraFMS::Core::pandora_output_password(
$pa_config,
$key->{'password'}
),
'extra_1' => $key->{'extra_1'},
'extra_2' => $key->{'extra_2'},
};