Skip to content

Commit

Permalink
fix: cluster and workspace form data (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdang authored Oct 18, 2024
1 parent f632fd7 commit 3619530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions silverback/cluster/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def create_cluster(
response = self.client.post(
"/clusters/",
params=dict(workspace=str(self.id)),
json=dict(name=cluster_name, slug=cluster_slug),
data=dict(name=cluster_name, slug=cluster_slug),
)

handle_error_with_response(response)
Expand Down Expand Up @@ -426,7 +426,7 @@ def create_workspace(
) -> Workspace:
response = self.post(
"/workspaces",
json=dict(slug=workspace_slug, name=workspace_name),
data=dict(slug=workspace_slug, name=workspace_name),
)
handle_error_with_response(response)
new_workspace = Workspace.model_validate_json(response.text)
Expand Down

0 comments on commit 3619530

Please sign in to comment.