Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 451bfc5f8092e8ae51d8d3cae8c8056e98eb7272
https://github.com/tribe29/checkmk/commit/451bfc5f8092e8ae51d8d3cae8c8056e9…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2020-10-02 (Fri, 02 Oct 2020)
Changed paths:
M cmk/snmplib/snmp_table.py
M cmk/snmplib/type_defs.py
M tests/integration/cmk/lib/snmplib/test_snmp_table.py
M tests/unit/cmk/lib/test_snmplib_snmp_table.py
Log Message:
-----------
snmplib/snmp_table: remove dead code
get_nmp_table is now always passed an SNMPTree instance (except
for some tests, which are updated).
As a result, _make_target_columns will always return `[None]` as
second tuple element, and never raise (SNMPTree is already validated
accordingly). We can remove it.
Also the outer loop of _get_snmp_table becomes trivial, and can be
removed. More cleanups will follow.
Change-Id: I7f88a62a4feb51dd547eabdae2e08190a3f89178