From 31a891949a8508aa13441a90b8fbc3784da36d34 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Sat, 9 Dec 2017 21:08:42 +0100 Subject: [PATCH] Some improvements --- bin/update | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/bin/update b/bin/update index ae6f208..bd99b14 100755 --- a/bin/update +++ b/bin/update @@ -10,8 +10,6 @@ import logging import sys import os -from IPython import embed - from cryptography import x509 from cryptography.hazmat.backends import default_backend @@ -55,11 +53,12 @@ def main(): for stype in SERVICETYPES: for path, name in oldcerts[stype]: - print(path, name) - - client = Client(inventory, settings); - client.get_certificate(name, stype) - + logging.info("Renewing Certificate: %s", name) + try: + client = Client(inventory, settings); + client.get_certificate(name, stype) + except Exception as e: + logging.exception("Couldnt renew") if __name__ == '__main__': main() -- 2.39.5