Module: check_mk
Branch: master
Commit: 1502aa1dcaf13decac79aa41c9a775d5f1dc8a87
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1502aa1dcaf13d…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Mon Jan 26 12:34:14 2015 +0100
win_exefiles: fixed really hard to see bug in regex of inventory plugin
---
inventory/win_exefiles | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inventory/win_exefiles b/inventory/win_exefiles
index f533f46..4641532 100644
--- a/inventory/win_exefiles
+++ b/inventory/win_exefiles
@@ -38,7 +38,7 @@ def inv_win_exefiles(info):
# 14.02.2014 23:12:04
if re.match("^\d{2}\.\d{2}\.20\d{2} \d{2}:\d{2}:\d{2}", write_time):
install_date = int(time.mktime(time.strptime(write_time, "%d.%m.%Y
%H:%M:%S")))
- elif re.match("^\d{1,2}/d{1,2}/20\d{2} \d{1,2}:\d{2}:\d{2} (AM|PM)",
write_time):
+ elif re.match("^\d{1,2}/\d{1,2}/20\d{2} \d{1,2}:\d{2}:\d{2} (AM|PM)",
write_time):
install_date = int(time.mktime(time.strptime(write_time, "%m/%d/%Y
%H:%M:%S %p")))
else:
install_date = write_time