From f4439028e3f7ce48cf1c6c92faae36ba209bb32c Mon Sep 17 00:00:00 2001 From: Sven Panne Date: Wed, 15 Jan 2025 11:33:35 +0100 Subject: [PATCH] Nuked keepalive global variable Change-Id: I62220ccb7ca0ce3b6d38df1b935542ba86e60ff6 --- cmk/base/modes/check_mk.py | 2 ++ cmk/checkengine/submitters.py | 1 + 2 files changed, 3 insertions(+) diff --git a/cmk/base/modes/check_mk.py b/cmk/base/modes/check_mk.py index 97202b2fbb0..0404333163e 100644 --- a/cmk/base/modes/check_mk.py +++ b/cmk/base/modes/check_mk.py @@ -2307,6 +2307,7 @@ def __call__( dry_run: bool, perfdata_format: Literal["pnp", "standard"], show_perfdata: bool, + keepalive: bool, ) -> Submitter: ... @@ -2431,6 +2432,7 @@ def mode_check( host_name=hostname, perfdata_format=("pnp" if config.perfdata_format == "pnp" else "standard"), show_perfdata=options.get("perfdata", False), + keepalive=keepalive, ), exit_spec=config_cache.exit_code_spec(hostname), ) diff --git a/cmk/checkengine/submitters.py b/cmk/checkengine/submitters.py index 96b0b38b8a8..f8fdb4dcf38 100644 --- a/cmk/checkengine/submitters.py +++ b/cmk/checkengine/submitters.py @@ -89,6 +89,7 @@ def get_submitter( dry_run: bool, perfdata_format: Literal["pnp", "standard"], show_perfdata: bool, + keepalive: bool, ) -> Submitter: """Enterprise should use `cmk.base.cee.keepalive.submitters`.""" if dry_run: