digits in P mode
Message-ID: <5804d1d0.6J4BeaX9gLf+tknR%ab(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.5 6/20/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: 9141bf8efda818998f65cc30844ea9ae0176d3b0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9141bf8efda818…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Oct 17 14:18:28 2016 +0200
3825 FIX local check: no longer cuts away any trailing "9" digits in P mode
---
.werks/3825 | 10 ++++++++++
ChangeLog | 1 +
checks/local | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/3825 b/.werks/3825
new file mode 100644
index 0000000..028d463
--- /dev/null
+++ b/.werks/3825
@@ -0,0 +1,10 @@
+Title: local check: no longer cuts away any trailing "9" digits in P mode
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.4.0i2
+Date: 1476706599
+
+
diff --git a/ChangeLog b/ChangeLog
index 943648f..98c73fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -25,6 +25,7 @@
* 3823 FIX: The windows agent were unable to execute powershell, python and pearl
scripts
* 3937 FIX: check_mk_agent.aix: fixed hadling of mailq command
* 3824 FIX: netapp_api_snapvault: fixed duplicate service when item name contains a $
character...
+ * 3825 FIX: local check: no longer cuts away any trailing "9" digits in P
mode
Multisite:
* 3959 Two new filters for the comment view: author and comment text field
diff --git a/checks/local b/checks/local
index 468eb97..01bf6d5 100644
--- a/checks/local
+++ b/checks/local
@@ -43,7 +43,7 @@ def local_compute_state(perfdata):
# 16MB -> 16.0
def float_ignore_uom(value):
while value:
- if value[-1] not in "012345678.-":
+ if value[-1] not in "0123456789.-":
value = value[:-1]
else:
return float(value)