Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1210 from pdallegrave/develop
Browse files Browse the repository at this point in the history
Fix storage of ACM certificates
  • Loading branch information
mikegrima authored Jun 26, 2019
2 parents 6fb691c + ccfba14 commit 299d1e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions security_monkey/watchers/acm.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ def slurp(self):
config.update({ 'IssuedAt': config.get('IssuedAt').astimezone(tzutc()).isoformat() })
if config.get('ImportedAt'):
config.update({ 'ImportedAt': config.get('ImportedAt').astimezone(tzutc()).isoformat()})
if config.get('RenewalSummary', {}).get('UpdatedAt'):
config['RenewalSummary']['UpdatedAt'] = config['RenewalSummary']['UpdatedAt'].astimezone(
tzutc()).isoformat()

item = ACMCertificate(region=region.name, account=account, name=cert.get('DomainName'),
arn=cert.get('CertificateArn'), config=dict(config), source_watcher=self)
Expand Down

0 comments on commit 299d1e0

Please sign in to comment.