diff options
| author | khoff <khoff> | 2007-01-31 06:30:44 +0000 | 
|---|---|---|
| committer | khoff <khoff> | 2007-01-31 06:30:44 +0000 | 
| commit | ba4e1b9f088bee848cbe86527bc62b01476755c1 (patch) | |
| tree | 78f97e8541ff161df5c3b3bdfb64a4ae4fd67630 /FS | |
| parent | 4ce0d2c2c72d442434f3100a873a8fc65bcddfc9 (diff) | |
Don't break if we're missing Net::SNMP.  Apparenty "require" doesn't do the trick.
Diffstat (limited to 'FS')
| -rw-r--r-- | FS/FS/part_export/snmp.pm | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/FS/FS/part_export/snmp.pm b/FS/FS/part_export/snmp.pm index 14781e0b0..81b3c7eb2 100644 --- a/FS/FS/part_export/snmp.pm +++ b/FS/FS/part_export/snmp.pm @@ -192,7 +192,8 @@ sub _prepare_args {  }  sub snmp_cmd { -  require Net::SNMP; +  eval "use Net::SNMP;"; +  die $@ if $@;    my %args = ();    my @varbindlist = (); | 
