removing testing comments

This commit is contained in:
Hossein Shafagh 2020-05-07 17:10:50 -07:00
parent 1b6907a404
commit 843ffad60e
1 changed files with 3 additions and 3 deletions

View File

@ -353,7 +353,7 @@ def rotate_region(endpoint_name, new_certificate_name, old_certificate_name, mes
log_data = f"[+] Rotating endpoint in region: {endpoint.dnsname} to certificate {new_cert.name}" log_data = f"[+] Rotating endpoint in region: {endpoint.dnsname} to certificate {new_cert.name}"
print(log_data) print(log_data)
current_app.logger.info(log_data) current_app.logger.info(log_data)
#request_rotation(endpoint, new_cert, message, commit) request_rotation(endpoint, new_cert, message, commit)
else: else:
log_data = f"[+] Skipping rotation of {endpoint.dnsname} since not in {region}" log_data = f"[+] Skipping rotation of {endpoint.dnsname} since not in {region}"
print(log_data) print(log_data)
@ -368,7 +368,7 @@ def rotate_region(endpoint_name, new_certificate_name, old_certificate_name, mes
log_data = f"[+] Rotating {endpoint.dnsname} in {region}" log_data = f"[+] Rotating {endpoint.dnsname} in {region}"
print(log_data) print(log_data)
current_app.logger.info(log_data) current_app.logger.info(log_data)
#request_rotation(endpoint, new_cert, message, commit) request_rotation(endpoint, new_cert, message, commit)
else: else:
log_data = f"[+] Skipping rotation of {endpoint.dnsname} since not in {region}" log_data = f"[+] Skipping rotation of {endpoint.dnsname} since not in {region}"
print(log_data) print(log_data)
@ -398,7 +398,7 @@ def rotate_region(endpoint_name, new_certificate_name, old_certificate_name, mes
log_data = f"[+] Rotating {endpoint.dnsname} in {region} to {endpoint.certificate.replaced[0].name}" log_data = f"[+] Rotating {endpoint.dnsname} in {region} to {endpoint.certificate.replaced[0].name}"
print(log_data) print(log_data)
current_app.logger.info(log_data) current_app.logger.info(log_data)
#request_rotation(endpoint, endpoint.certificate.replaced[0], message, commit) request_rotation(endpoint, endpoint.certificate.replaced[0], message, commit)
status = SUCCESS_METRIC_STATUS status = SUCCESS_METRIC_STATUS
else: else:
status = FAILURE_METRIC_STATUS status = FAILURE_METRIC_STATUS