This commit is contained in:
Hossein Shafagh 2021-01-28 15:49:00 -08:00
parent e250a61344
commit 0d7e8d77e4
1 changed files with 2 additions and 0 deletions

View File

@ -249,6 +249,8 @@ def rotate(endpoint_name, new_certificate_name, old_certificate_name, message, c
current_app.logger.info(log_data) current_app.logger.info(log_data)
else: else:
# no certificate name or endpoint was provided, so we will now fetch all endpoints,
# which have are attached to a certificate that has been replaced
print("[+] Rotating all endpoints that have new certificates available") print("[+] Rotating all endpoints that have new certificates available")
for endpoint in endpoint_service.get_all_pending_rotation(): for endpoint in endpoint_service.get_all_pending_rotation():
log_data["endpoint"] = endpoint.dnsname log_data["endpoint"] = endpoint.dnsname