Skip to content

Commit

Permalink
Fix log message syntax
Browse files Browse the repository at this point in the history
Closes #17
  • Loading branch information
bmiller08 committed Oct 13, 2021
1 parent 2112043 commit b13a492
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified function/function.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions function/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
Expand Down

0 comments on commit b13a492

Please sign in to comment.