Commit f65e8e44 authored by Robert Ricci's avatar Robert Ricci

A couple bugfixes - track new arguments to snmpit_cisco, and fix a

dumb error with the return value.
parent 4237cadc
......@@ -105,7 +105,7 @@ foreach my $name (keys %portMap) {
SWITCH: for ($type) {
/cisco/ && do {
require snmpit_cisco;
$device = new snmpit_cisco($name);
$device = new snmpit_cisco($name,0,$type);
last;
};
/intel/ && do {
......@@ -154,7 +154,7 @@ foreach my $line (sort {$$a[0] cmp $$b[0]} @portinfo) {
}
}
if ($errors) {
if (!$errors) {
print "There were no errors found\n";
exit(1);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment