Skip to content

Commit

Permalink
Add api_version support to cluster start method (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
akaranjkar-qu authored and msumit committed Jan 2, 2019
1 parent 925bacf commit c527090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qds_sdk/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ def status(cls, cluster_id_label):
return conn.get(cls.element_path(cluster_id_label) + "/state")

@classmethod
def start(cls, cluster_id_label):
def start(cls, cluster_id_label, api_version=None):
"""
Start the cluster with id/label `cluster_id_label`.
"""
conn = Qubole.agent()
conn = Qubole.agent(version=api_version)
data = {"state": "start"}
return conn.put(cls.element_path(cluster_id_label) + "/state", data)

Expand Down

0 comments on commit c527090

Please sign in to comment.