X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fsnmp.pm;h=81b3c7eb27ec5df44449b0a18905b79b3b734da6;hb=674cb2d9d7105f4cc2871539b2e9f7088cdaa750;hp=14781e0b0ecdbbc900d086de38ba26b21915ba67;hpb=d11482aaa34f11b5007741e2099af46750805c11;p=freeside.git 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 = ();