handle_respone can also handle the no data response
This commit is contained in:
parent
cf87e178c8
commit
9ce0010bf1
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue