Skip to content

Commit

Permalink
12940 FIX Agent version ignored if "unknown"
Browse files Browse the repository at this point in the history
If Fritz or VNX agent has a version "unknown", the version will be ignored
during checking.

Closes #403

Change-Id: Ia74a5ecb281740b720b32165459930d3d06de3d9
  • Loading branch information
Yogibaer75 authored and scolakovic committed Oct 11, 2021
1 parent 8823100 commit d2511c8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .werks/12940
@@ -0,0 +1,12 @@
Title: Agent version ignored if "unknown"
Class: fix
Compatible: compat
Component: checks
Date: 1633953294
Edition: cre
Knowledge: doc
Level: 1
Version: 2.1.0i1

If Fritz or VNX agent has a version "unknown", the version will be ignored
during checking.
2 changes: 1 addition & 1 deletion cmk/core_helpers/agent.py
Expand Up @@ -821,7 +821,7 @@ def _is_expected_agent_version(
if agent_version is None:
return False

if agent_version in ["(unknown)", "None"]:
if agent_version in ["(unknown)", "None", "unknown"]:
return False

if isinstance(expected_version, str) and expected_version != agent_version:
Expand Down

0 comments on commit d2511c8

Please sign in to comment.