Module: check_mk
Branch: master
Commit: b542b4b786e33afb934c768df28c36f37f9944c5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b542b4b786e33a…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed May 24 11:37:41 2017 +0200
4664 FIX netapp_api_qtree_quota: Fixed NameError: name 'is_digit' is not defined
Change-Id: I16c1352b41cd50d188402edcc5fbecc51e4e5110
---
.werks/4664 | 11 +++++++++++
checks/netapp_api_qtree_quota | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4664 b/.werks/4664
new file mode 100644
index 0000000..6e6ab0a
--- /dev/null
+++ b/.werks/4664
@@ -0,0 +1,11 @@
+Title: netapp_api_qtree_quota: Fixed NameError: name 'is_digit' is not defined
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1495618381
+
+
diff --git a/checks/netapp_api_qtree_quota b/checks/netapp_api_qtree_quota
index 9742f81..659abfa 100644
--- a/checks/netapp_api_qtree_quota
+++ b/checks/netapp_api_qtree_quota
@@ -43,7 +43,7 @@ def check_netapp_api_qtree_quota(item, params, parsed):
return 3, "Qtree not found in agent output"
disk_limit = qtree.get("disk-limit")
- if not disk_limit.is_digit():
+ if not disk_limit.isdigit():
return 3, "Qtree has no disk limit set"
size_total = int(disk_limit) / 1024.0