mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-23 01:42:10 -05:00
Fix tests with an empty NPTest.cache file
The NPTest.cache cannot be loaded when empty, and this prevents getting the data and populating the file. This patch skips the file when empty as if it didn't exist.
This commit is contained in:
parent
68fe713335
commit
754cd092ae
1 changed files with 1 additions and 1 deletions
|
|
@ -438,7 +438,7 @@ sub LoadCache
|
|||
|
||||
chomp($fileContents);
|
||||
my( $contentsRef ) = eval $fileContents;
|
||||
%CACHE = %{$contentsRef};
|
||||
%CACHE = %{$contentsRef} if (defined($contentsRef));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue