Skip to content

Commit

Permalink
Nuked keepalive global variable
Browse files Browse the repository at this point in the history
Change-Id: I62220ccb7ca0ce3b6d38df1b935542ba86e60ff6
  • Loading branch information
spt29 committed Jan 16, 2025
1 parent f5d3147 commit f443902
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmk/base/modes/check_mk.py
Original file line number Diff line number Diff line change
Expand Up @@ -2307,6 +2307,7 @@ def __call__(
dry_run: bool,
perfdata_format: Literal["pnp", "standard"],
show_perfdata: bool,
keepalive: bool,
) -> Submitter: ...


Expand Down Expand Up @@ -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),
)
Expand Down
1 change: 1 addition & 0 deletions cmk/checkengine/submitters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f443902

Please sign in to comment.