Module: check_mk
Branch: master
Commit: dc9475bb4d2b1e59b3818116cb726f166bf4a158
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dc9475bb4d2b1e…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Tue Mar 3 11:44:47 2015 +0100
temperature.include: Fixed handling of None params in check_temperature_list
---
checks/temperature.include | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/temperature.include b/checks/temperature.include
index a56c8f2..a0cc842 100644
--- a/checks/temperature.include
+++ b/checks/temperature.include
@@ -273,7 +273,7 @@ def check_temperature_list(sensorlist, params):
if type(params) == tuple:
params = { "levels" : params }
- elif type(params) == None:
+ elif params == None:
params = {}
output_unit = params.get("output_unit", "c")