Fix return type

This commit is contained in:
Jasmine Schladen 2020-12-15 13:37:24 -08:00
parent de98586c13
commit 33e46d4a53
1 changed files with 4 additions and 2 deletions

View File

@ -85,10 +85,12 @@ def security_expiration_summary(exclude):
status = FAILURE_METRIC_STATUS status = FAILURE_METRIC_STATUS
try: try:
print("Starting to notify security team about expiring certificates!") print("Starting to notify security team about expiring certificates!")
status = send_security_expiration_summary(exclude) success = send_security_expiration_summary(exclude)
print( print(
"Finished notifying security team about expiring certificates!" f"Finished notifying security team about expiring certificates! Success: {success}"
) )
if success:
status = SUCCESS_METRIC_STATUS
except Exception: except Exception:
sentry.captureException() sentry.captureException()