Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: ffa820b4dd39270899a68c4a05186680d1e30505
https://github.com/tribe29/checkmk/commit/ffa820b4dd39270899a68c4a05186680d…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2021-08-19 (Thu, 19 Aug 2021)
Changed paths:
M cmk/base/agent_based/data_provider.py
M cmk/core_helpers/host_sections.py
Log Message:
-----------
Make HostSections attributes immutable
The class itself can be mutated over `__add__` but not each
attribute independently. Also rename `add()` -> `__add__()`
for syntactic sugar.
Change-Id: I044e3c1b603dad7a148a1d24a9547dfa62dcd194
Commit: 67ea664f9d44501765f44312dbe8f8dfed4129bc
https://github.com/tribe29/checkmk/commit/67ea664f9d44501765f44312dbe8f8dfe…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2021-08-19 (Thu, 19 Aug 2021)
Changed paths:
M cmk/base/agent_based/data_provider.py
M cmk/core_helpers/host_sections.py
Log Message:
-----------
Make HostSections class immutable
Note that `__add__()` (and even `__iadd__()`) on immutable objects is
fairly common in Python: see numbers and tuples for example.
The class is now a dump, immutable container.
Change-Id: I42bf41806ad36284614eadcb27e14579e5a55b70
Compare:
https://github.com/tribe29/checkmk/compare/191c71e15a33...67ea664f9d44