Skip to content
Permalink
Browse files

Fix a cert janitor stack in the scheduler thread

Do not accept None mtime in the certificates cache.
  • Loading branch information...
cvaroqui committed Jul 23, 2019
1 parent 8fb3ba9 commit 201090a247c9f121cc6cbe80bf338ccaccbedab1
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/osvcd_scheduler.py
@@ -102,6 +102,8 @@ def janitor_certificates(self):
if ca != self.cluster_ca:
continue
cf_mtime = shared.CLUSTER_DATA.get(rcEnv.nodename, {}).get("services", {}).get("config", {}).get(obj.path, {}).get("updated")
if cf_mtime is None:
continue
if obj.path not in self.certificates or self.certificates[obj.path]["mtime"] < cf_mtime:
try:
expire = obj.get_cert_expire()

0 comments on commit 201090a

Please sign in to comment.
You can’t perform that action at this time.