fix storage access unitialized cache case

This commit is contained in:
garnier-quentin 2019-03-13 10:43:17 +01:00
parent 2296a85e95
commit 028599ec76
1 changed files with 1 additions and 0 deletions

View File

@ -259,6 +259,7 @@ sub access_result {
if (!defined($self->{option_results}->{add_access}));
my $oid_hrFSAccess = '.1.3.6.1.2.1.25.3.8.1.5';
my $relations = $self->{statefile_cache}->get(name => 'relation_storageindex_fsstorageindex');
return {} if (!defined($relations) || scalar(keys %$relations) <= 0);
my @instances = [];
foreach (@{$self->{storage_id_selected}}) {
if (defined($relations->{$_})) {