Skip to content

Commit

Permalink
Merge pull request #18 from RenovoSolutions/17-invalid-syntax-for-log…
Browse files Browse the repository at this point in the history
…-messages

Fix log message syntax
  • Loading branch information
bmiller08 authored Oct 13, 2021
2 parents 2112043 + b13a492 commit 3535ce4
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 3535ce4

Please sign in to comment.