File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -269,15 +269,15 @@ def update(
269269 return BoundCertificate (self , response ["certificate" ])
270270
271271 def delete (self , certificate : Certificate | BoundCertificate ) -> bool :
272- self ._client .request (
273- url = f"/certificates/{ certificate .id } " ,
274- method = "DELETE" ,
275- )
276272 """Deletes a certificate.
277273
278274 :param certificate: :class:`BoundCertificate <hcloud.certificates.client.BoundCertificate>` or :class:`Certificate <hcloud.certificates.domain.Certificate>`
279275 :return: True
280276 """
277+ self ._client .request (
278+ url = f"/certificates/{ certificate .id } " ,
279+ method = "DELETE" ,
280+ )
281281 # Return always true, because the API does not return an action for it. When an error occurs a HcloudAPIException will be raised
282282 return True
283283
Original file line number Diff line number Diff line change @@ -183,11 +183,11 @@ def update(
183183 return BoundSSHKey (self , response ["ssh_key" ])
184184
185185 def delete (self , ssh_key : SSHKey | BoundSSHKey ) -> bool :
186- self ._client .request (url = f"/ssh_keys/{ ssh_key .id } " , method = "DELETE" )
187186 """Deletes an SSH key. It cannot be used anymore.
188187
189188 :param ssh_key: :class:`BoundSSHKey <hcloud.ssh_keys.client.BoundSSHKey>` or :class:`SSHKey <hcloud.ssh_keys.domain.SSHKey>`
190189 :return: True
191190 """
191+ self ._client .request (url = f"/ssh_keys/{ ssh_key .id } " , method = "DELETE" )
192192 # Return always true, because the API does not return an action for it. When an error occurs a HcloudAPIException will be raised
193193 return True
You can’t perform that action at this time.
0 commit comments