Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 38df16c0b7090408c24ddf15d11dbe7a73cec346
https://github.com/tribe29/checkmk/commit/38df16c0b7090408c24ddf15d11dbe7a7…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2021-10-11 (Mon, 11 Oct 2021)
Changed paths:
M cmk/base/plugins/agent_based/utils/ps.py
M tests/unit/cmk/base/plugins/agent_based/test_ps_check.py
M tests/unit/cmk/base/plugins/agent_based/test_ps_section.py
M tests/unit/cmk/base/plugins/agent_based/utils/test_ps_discovery_specs.py
Log Message:
-----------
ps: cleanup tests
The host label instances are *not* passed to or returned
by the get_discovery_specs function.
Change-Id: I32b8d3f53b61df18c3896b45e288953fae64c6f0
Commit: 07831abe60c92476836a8a92c643366bdedc20ac
https://github.com/tribe29/checkmk/commit/07831abe60c92476836a8a92c643366bd…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2021-10-11 (Mon, 11 Oct 2021)
Changed paths:
M cmk/base/discovered_labels.py
M tests/unit/cmk/base/test_discovered_labels.py
Log Message:
-----------
Labels: fix __eq__
TIL: Using __slots__ and __dict__ is a tricky combination:
>> class A:
... __slots__ =
"a",
... def __init__(self, a):
... self.a = a
...
>> class B(A):
... pass
...
>> class C(A):
... __slots__ = ()
...
>> A(1).__dict__
Traceback (most recent
call last):
File "<stdin>", line 1, in <module>
AttributeError: 'A' object has no attribute '__dict__'
>> B(1).__dict__
{}
>> C(1).__dict__
Traceback (most recent
call last):
File "<stdin>", line 1, in <module>
AttributeError: 'C' object has no attribute '__dict__'
In this case this meant that all ServiceLabels compared equal.
Change-Id: I4bd1f0b99645ac4b6cbfd42de160f7336790cbc9
Commit: 98d834026303f78d81999b3d9db386f46087670f
https://github.com/tribe29/checkmk/commit/98d834026303f78d81999b3d9db386f46…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2021-10-11 (Mon, 11 Oct 2021)
Changed paths:
M cmk/base/discovered_labels.py
Log Message:
-----------
move labels to the top
Change-Id: I382841d209106cf9554b3a8696cb7aa8aa2a4685
Commit: d8338c19cdb4497f5d24093b1e0b8b51d3460e98
https://github.com/tribe29/checkmk/commit/d8338c19cdb4497f5d24093b1e0b8b51d…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2021-10-11 (Mon, 11 Oct 2021)
Changed paths:
M cmk/base/agent_based/discovery/__init__.py
M cmk/base/agent_based/discovery/_discovered_services.py
M tests/unit/cmk/base/agent_based/discovery/test_discovered_services.py
Log Message:
-----------
discovery: fix wrong classification of plugins for cmk -II
For -II, we must not remember the preexisting services.
That way, all discovered services will be considered 'new',
which is what the `-II` flag implies.
Change-Id: I9d64bfec77243dcc31118d2a2cc4dea1a6eb47a6
Compare:
https://github.com/tribe29/checkmk/compare/570e21a332a2...d8338c19cdb4