Branch: refs/heads/master
Home:
https://github.com/Checkmk/checkmk
Commit: 894d3c9a140b7d21afc0e1e8e03956723791c510
https://github.com/Checkmk/checkmk/commit/894d3c9a140b7d21afc0e1e8e03956723…
Author: Sven Panne <sven.panne(a)checkmk.com>
Date: 2024-09-11 (Wed, 11 Sep 2024)
Changed paths:
M cmk/plugins/logwatch/agent_based/logwatch_ec.py
M tests/unit/cmk/plugins/logwatch/agent_based/test_logwatch_ec.py
Log Message:
-----------
Reduce time_machine usage a tiny bit
Don't conjure up the current time deep down the call stack and use
time_machine in tests later to fix that API deficiency. Instead, pass down
the current time from the top, i.e. check_logwatch_ec_common(), and use
that aftwards.
Note: With a slightly saner organization of the code into classes and
methods, the threading of the timestamp could be reduced quite a bit, but
that's something for another change. ;-)
Change-Id: Id6931f15b85ebf5c4638e96255f20184800792aa
To unsubscribe from these emails, change your notification settings at
https://github.com/Checkmk/checkmk/settings/notifications