Module: check_mk
Branch: master
Commit: 92d3afbef83e3ddd09adc8e040ca97bae100ffa7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=92d3afbef83e3d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Mar 18 13:34:22 2015 +0100
win_os: Another fix for the datetime string parsing
---
inventory/win_os | 2 ++
1 file changed, 2 insertions(+)
diff --git a/inventory/win_os b/inventory/win_os
index a6d8bfe..9e93a34 100644
--- a/inventory/win_os
+++ b/inventory/win_os
@@ -43,6 +43,8 @@ def inv_win_os(info):
if '+' in line[6]:
datestr, tz = line[6].split('+')
+ elif '-' in line[6]:
+ datestr, tz = line[6].split('-')
else:
datestr, tz = line[6], 0
node["install_date"] = int(time.mktime(time.strptime(datestr,
"%Y%m%d%H%M%S.%f"))) - int(tz)*60