[freeside-commits] freeside/FS/FS/part_export snmp.pm,1.1,1.2
Kristian Hoffmann,420,,
khoff at wavetail.420.am
Tue Jan 30 22:30:47 PST 2007
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail:/tmp/cvs-serv28443
Modified Files:
snmp.pm
Log Message:
Don't break if we're missing Net::SNMP. Apparenty "require" doesn't do the trick.
Index: snmp.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/snmp.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- snmp.pm 31 Jan 2007 05:43:52 -0000 1.1
+++ snmp.pm 31 Jan 2007 06:30:44 -0000 1.2
@@ -192,7 +192,8 @@
}
sub snmp_cmd {
- require Net::SNMP;
+ eval "use Net::SNMP;";
+ die $@ if $@;
my %args = ();
my @varbindlist = ();
More information about the freeside-commits
mailing list