Skip to content

Commit 69375fc

Browse files
author
Harizo Rajaona
committed
Minor docstring adjustments + removed useless return statements where self.client._perform_empty is used
1 parent 2c8f4c3 commit 69375fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dataikuapi/dss/apideployer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ def delete(self, disable_first=False):
339339
Deletes this deployment. The disable_first flag automatically disables the deployment
340340
before its deletion.
341341
342-
:param boolean disable_first: If True, automatically disables deployment.
343-
If False, attempting to delete an enabled deployment will raise an Exception.
342+
:param boolean disable_first: If True, automatically disables this deployment before deleting it.
343+
If False, will raise an Exception if this deployment is enabled.
344344
345345
"""
346346

@@ -352,7 +352,7 @@ def delete(self, disable_first=False):
352352
settings = self.get_settings()
353353
settings.set_enabled(enabled=False)
354354
settings.save()
355-
return self.client._perform_empty(
355+
self.client._perform_empty(
356356
"DELETE", "/api-deployer/deployments/%s" % (self.deployment_id))
357357

358358

@@ -532,7 +532,7 @@ def delete(self):
532532
533533
You may only delete a service if it has no deployments on it anymore.
534534
"""
535-
return self.client._perform_empty(
535+
self.client._perform_empty(
536536
"DELETE", "/api-deployer/services/%s" % (self.service_id))
537537

538538

0 commit comments

Comments
 (0)