Merge pull request 'fix' (#9) from master into dev
Reviewed-on: https://gitea.sprinthub.ru/self/certupdater/pulls/9
This commit was merged in pull request #9.
This commit is contained in:
2
main.py
2
main.py
@@ -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", )
|
||||
|
||||
Reference in New Issue
Block a user