Compare commits

..

No commits in common. "d4ef8b6b7c2e987dbf15d50672e5e25d00945cf5" and "11516b1a6e23421724af6bf44f85afa9bca52b91" have entirely different histories.

View File

@ -37,7 +37,7 @@ while True:
now = datetime.datetime.now()
mongo_hosts = mongo.hosts
for host in get_hosts():
if now + datetime.timedelta(days=14) > mongo_hosts[host]["expire_time"]:
if now() + datetime.timedelta(days=14) > mongo_hosts[host]["expire_time"]:
update_host(host)
print(f"Host {host} updated")
minio.put_object("certupdater", "nginx.conf", )