Skip to content

Commit

Permalink
fix(gorgone): use centreon::common for centreon vault lib.
Browse files Browse the repository at this point in the history
Refs:MON-106121
  • Loading branch information
Evan-Adam committed Nov 4, 2024
1 parent 095f1f5 commit 0461adf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gorgone/gorgone/class/core.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use MIME::Base64;
use Crypt::Mode::CBC;
use ZMQ::FFI qw(ZMQ_DONTWAIT ZMQ_SNDMORE);
use EV;
use centreon::common::centreonvault;
use gorgone::standard::library;
use gorgone::standard::constants qw(:all);
use gorgone::standard::misc;
Expand Down Expand Up @@ -166,7 +167,7 @@ sub init {
# before loading the config, we need to load initialize vault.
# Gorgone don't know how to reload for now, but once it will be done, we will need to retry the vault connexion if it failed when starting, and read again the configuration
$self->{vault_file} = defined($self->{vault_file}) ? $self->{vault_file} : '/var/lib/centreon/vault/vault.json';
$self->{vault} = centreon::common::vault->new(logger => $self->{logger}, 'config_file' => $self->{vault_file});
$self->{vault} = centreon::common::centreonvault->new(logger => $self->{logger}, 'config_file' => $self->{vault_file});

$self->{config} = $self->yaml_load_config(
file => $self->{config_file},
Expand Down

0 comments on commit 0461adf

Please sign in to comment.