projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4ce0d2c
)
Don't break if we're missing Net::SNMP. Apparenty "require" doesn't do the trick.
author
khoff
<khoff>
Wed, 31 Jan 2007 06:30:44 +0000
(06:30 +0000)
committer
khoff
<khoff>
Wed, 31 Jan 2007 06:30:44 +0000
(06:30 +0000)
FS/FS/part_export/snmp.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_export/snmp.pm
b/FS/FS/part_export/snmp.pm
index
14781e0
..
81b3c7e
100644
(file)
--- 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 = ();