Module: check_mk
Branch: master
Commit: 09877eab47c5faf4fb3ffc51eb0026d59bb30e2f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=09877eab47c5fa…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Wed Feb 20 14:28:08 2019 +0100
generictests/run.py: Consider integer discovery parameters
Change-Id: I865f584a7e29e7f955ca8601b37ba17ab6cc7e2d
---
tests/unit/checks/generictests/run.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/unit/checks/generictests/run.py
b/tests/unit/checks/generictests/run.py
index e2ed0ed..82be247 100644
--- a/tests/unit/checks/generictests/run.py
+++ b/tests/unit/checks/generictests/run.py
@@ -45,6 +45,8 @@ def get_info_argument(dataset, subcheck, fallback_parsed=None):
def get_merged_parameters(check, provided_p):
default_p = check.default_parameters()
+ if isinstance(provided_p, int):
+ return provided_p
if not provided_p:
return default_p
if isinstance(provided_p, str):