From 6ea1a224994ed1b712b94a1b10897995742f5d53 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Sun, 7 Aug 2022 23:19:08 +0100 Subject: [PATCH] fix filename for all_oids.gz --- lib/App/Netdisco/Worker/Plugin/LoadMIBs.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/App/Netdisco/Worker/Plugin/LoadMIBs.pm b/lib/App/Netdisco/Worker/Plugin/LoadMIBs.pm index 20bb644e..426aba20 100644 --- a/lib/App/Netdisco/Worker/Plugin/LoadMIBs.pm +++ b/lib/App/Netdisco/Worker/Plugin/LoadMIBs.pm @@ -18,7 +18,7 @@ register_worker({ phase => 'main' }, sub { debug "loadmibs - loading netdisco-mibs object cache"; my $home = (setting('mibhome') || catdir(($ENV{NETDISCO_HOME} || $ENV{HOME}), 'netdisco-mibs')); - my $infile = catfile($home, qw(EXTRAS reports all_oids)); + my $infile = catfile($home, qw(EXTRAS reports all_oids.gz)); my $outfh = File::Temp->new(); my $outfile = $outfh->filename; gunzip $infile => $outfile or die "gunzip failed: $GunzipError\n";