This commit is contained in:
Kristofer Hallin 2022-06-16 10:01:52 +02:00 committed by Olof hagsand
parent 5962852e9f
commit ebf251455f

View file

@ -273,14 +273,14 @@ if $SNMPCHECK; then
fi fi
new "Validating OID: $oid2 = $type: $value" new "Validating OID: $oid2 = $type: $value"
expectpart "$($get $oid)" 0 $result expectpart "$($get $oid)" 0 "$result"
else else
if [ -z "$result" ]; then if [ -z "$result" ]; then
result="$oid2 = $type: $value" result="$oid2 = $type: $value"
fi fi
new "Validating next OID: $oid2 = $type: $value" new "Validating next OID: $oid2 = $type: $value"
expectpart "$($getnext $oid)" 0 $result expectpart "$($getnext $oid)" 0 "$result"
fi fi
} }