fix test
This commit is contained in:
@@ -43,7 +43,7 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
|
||||
# Certificate may have no expiration
|
||||
cert_expires_at = (
|
||||
completed_at + timedelta(days=int(cert['exp_interval']))
|
||||
if 'exp_interval' in cert
|
||||
if cert.get('exp_interval', 0) > 0
|
||||
else None
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user