Module: check_mk
Branch: master
Commit: a8d8c5065e78b9562f5e84ee18eea4f4c1aaadb5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a8d8c5065e78b9…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de>
Date: Thu Mar 7 18:27:29 2019 +0100
agent_kubernetes: fix a bug in the conversion to unix timestamps
Change-Id: Iae4113246cf4c7b43ff7d702f2c8a8866dde480f
---
cmk/special_agents/agent_kubernetes.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmk/special_agents/agent_kubernetes.py
b/cmk/special_agents/agent_kubernetes.py
index 3ac84b5..f5c6293 100644
--- a/cmk/special_agents/agent_kubernetes.py
+++ b/cmk/special_agents/agent_kubernetes.py
@@ -166,7 +166,7 @@ class Metadata(object):
if metadata:
self.name = metadata.name
self.namespace = metadata.namespace
- self.creation_timestamp =
(time.mktime(metadata.creation_timestamp.timetuple())
+ self.creation_timestamp =
(time.mktime(metadata.creation_timestamp.utctimetuple())
if metadata.creation_timestamp else None)
else:
self.name = None