Skip to content

Commit cd0c7f4

Browse files
committed
Minor docstrings and exception text correction.
1 parent 896a7c6 commit cd0c7f4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dataikuapi/dss/admin.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,7 @@ def set_definition(self, definition):
798798
"PUT", "/admin/globalAPIKeys/%s" % self.key,
799799
body = definition)
800800

801+
801802
class DSSCluster(object):
802803
"""
803804
A handle to interact with a cluster on the DSS instance
@@ -874,7 +875,7 @@ def start(self):
874875
resp = self.client._perform_json(
875876
"POST", "/admin/clusters/%s/actions/start" % (self.cluster_id))
876877
if resp is None:
877-
raise Exception('Env update returned no data')
878+
raise Exception('Cluster operation returned no data')
878879
if resp.get('messages', {}).get('error', False):
879880
raise Exception('Cluster operation failed : %s' % (json.dumps(resp.get('messages', {}).get('messages', {}))))
880881
return resp
@@ -896,6 +897,9 @@ def stop(self, terminate=True):
896897
return resp
897898

898899
class DSSClusterSettings(object):
900+
"""
901+
The settings of a cluster
902+
"""
899903
def __init__(self, client, cluster_id, settings):
900904
"""Do not call directly, use :meth:`DSSCluster.get_settings`"""
901905
self.client = client
@@ -928,6 +932,9 @@ def save(self):
928932
"PUT", "/admin/clusters/%s" % (self.cluster_id), body=self.settings)
929933

930934
class DSSClusterStatus(object):
935+
"""
936+
The status of a cluster
937+
"""
931938
def __init__(self, client, cluster_id, status):
932939
"""Do not call directly, use :meth:`DSSCluster.get_Status`"""
933940
self.client = client

0 commit comments

Comments
 (0)