handle_respone can also handle the no data response

This commit is contained in:
Hossein Shafagh 2020-10-22 17:33:39 -07:00
parent cf87e178c8
commit 9ce0010bf1
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ class EntrustIssuerPlugin(IssuerPlugin):
deactivate_url = f"{base_url}/certificates/{certificate.external_id}/deactivations" deactivate_url = f"{base_url}/certificates/{certificate.external_id}/deactivations"
response = self.session.post(deactivate_url) response = self.session.post(deactivate_url)
metrics.send("entrust_deactivate_certificate", "counter", 1) metrics.send("entrust_deactivate_certificate", "counter", 1)
return response.status_code return handle_response(response)
@staticmethod @staticmethod
def create_authority(options): def create_authority(options):