Skip to content

Commit e956a7f

Browse files
author
Ruslan Gainutdinov
committed
fix: polishing
1 parent 2e1b2d8 commit e956a7f

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

verda/clusters/_clusters.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99

1010
CLUSTERS_ENDPOINT = '/clusters'
1111

12-
ClusterStatus = Literal[
13-
'creating', 'running', 'scaling', 'updating', 'deleting', 'deleted', 'error'
14-
]
1512

1613

1714
@dataclass_json
@@ -131,7 +128,7 @@ def create(
131128
"""Creates and deploys a new compute cluster.
132129
133130
Args:
134-
name: Name for the cluster.
131+
hostname: Name for the cluster.
135132
cluster_type: Cluster type.
136133
image: Image type or ID for cluster nodes.
137134
description: Human-readable description of the cluster.
@@ -220,7 +217,6 @@ def is_available(
220217
Returns:
221218
True if the instance type is available, False otherwise.
222219
"""
223-
is_spot = str(is_spot).lower()
224220
query_params = {'location_code': location_code}
225221
url = f'/cluster-availability/{cluster_type}'
226222
return self._http_client.get(url, query_params).json()

verda/constants.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,9 @@ class ClusterStatus:
6060
"""Cluster status."""
6161

6262
ORDERED = 'ordered'
63-
CREATING = 'creating'
63+
PROVISIONING = 'provisioning'
6464
RUNNING = 'running'
65-
SCALING = 'scaling'
66-
UPDATING = 'updating'
67-
DELETING = 'deleting'
68-
DELETED = 'deleted'
65+
DISCONTINUED = 'discontinued'
6966
ERROR = 'error'
7067

7168
def __init__(self):

0 commit comments

Comments
 (0)