Skip to content

Commit e157e27

Browse files
author
Pedro Rodrigues
committed
remove name of workspacegroup from starter workspace creation
1 parent c1f458c commit e157e27

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

singlestoredb/management/workspace.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ def create_starter_workspace(
14991499
database_name : str
15001500
Name of the database for the starter workspace
15011501
workspace_group : dict[str, str]
1502-
Workspace group input (dict with keys: 'name', 'cell_id')
1502+
Workspace group input (dict with keys: 'cell_id')
15031503
15041504
Returns
15051505
-------
@@ -1854,7 +1854,7 @@ def create_starter_workspace(
18541854
database_name : str
18551855
Name of the database for the starter workspace
18561856
workspace_group : dict[str, str]
1857-
Workspace group input (dict with keys: 'name', 'cell_id')
1857+
Workspace group input (dict with keys: 'cell_id')
18581858
18591859
Returns
18601860
-------
@@ -1863,16 +1863,15 @@ def create_starter_workspace(
18631863
if not workspace_group or not isinstance(workspace_group, dict):
18641864
raise ValueError(
18651865
'workspace_group must be a dict with keys: '
1866-
"'name', 'cell_id'",
1866+
"'cell_id'",
18671867
)
1868-
if set(workspace_group.keys()) != {'name', 'cell_id'}:
1869-
raise ValueError("workspace_group must contain only 'name' and 'cell_id'")
1868+
if set(workspace_group.keys()) != {'cell_id'}:
1869+
raise ValueError("workspace_group must contain only 'cell_id'")
18701870

18711871
payload = {
18721872
'name': name,
18731873
'databaseName': database_name,
18741874
'workspaceGroup': {
1875-
'name': workspace_group['name'],
18761875
'cellID': workspace_group['cell_id'],
18771876
},
18781877
}

singlestoredb/tests/test_management.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ def setUpClass(cls):
396396
f'starter-ws-test-{name}',
397397
database_name=f'starter_db_{name}',
398398
workspace_group={
399-
'name': f'starter-wg-test-{name}',
400399
'cell_id': random.choice(us_regions).id,
401400
},
402401
)

0 commit comments

Comments
 (0)