[checkmk-commits] Check_MK Git: check_mk: Made expected agent version check a bit more robust

Lars Michelsen lm at mathias-kettner.de
Fri Jun 6 13:30:00 CEST 2014


Module: check_mk
Branch: master
Commit: 9560ffc9cf34a8fe8561adcb9ce70756c2a58495
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9560ffc9cf34a8fe8561adcb9ce70756c2a58495

Author: Lars Michelsen <lm at mathias-kettner.de>
Date:   Fri Jun  6 13:25:17 2014 +0200

Made expected agent version check a bit more robust

---

 modules/check_mk_base.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index bbf50d6..bfea8f7 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -1466,7 +1466,7 @@ def parse_version(v):
 
 def is_expected_agent_version(agent_version, expected_version):
     try:
-        if agent_version == '(unknown)':
+        if agent_version in [ '(unknown)', None, 'None' ]:
             return False
 
         if type(expected_version) == str and expected_version != agent_version:



More information about the checkmk-commits mailing list