diff --git a/function/function.zip b/function/function.zip index 8b3dee28..22f5df6f 100644 Binary files a/function/function.zip and b/function/function.zip differ diff --git a/function/index.py b/function/index.py index bb1498af..f3b13572 100644 --- a/function/index.py +++ b/function/index.py @@ -52,10 +52,10 @@ def should_provision(domains): not_after = existing_cert['Certificate']['NotAfter'] reissue = (not_after - now).days <= int(os.environ['REISSUE_DAYS']) if reissue: - logging.info(f'Cert will expire sometime in the next {os.environ['REISSUE_DAYS']} days so will be reissued.') + logging.info(f'Cert will expire sometime in the next {os.environ["REISSUE_DAYS"]} days so will be reissued.') return reissue else: - logging.info(f'Cert wont expire in next {os.environ['REISSUE_DAYS']} days so will NOT be reissued.') + logging.info(f'Cert wont expire in next {os.environ["REISSUE_DAYS"]} days so will NOT be reissued.') return reissue else: logging.info('Cert not found in ACM. Will issue new cert.')