Fix return type
This commit is contained in:
parent
de98586c13
commit
33e46d4a53
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue