Skip to content

Commit

Permalink
fix: new cluster vars (#177)
Browse files Browse the repository at this point in the history
* fix: new cluster vars

* chore: lint
  • Loading branch information
dtdang authored Dec 19, 2024
1 parent 32e11e4 commit 86dded2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion silverback/cluster/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def variable_groups(self) -> dict[str, VariableGroup]:
return {vg.name: vg for vg in map(VariableGroup.model_validate, response.json())}

def new_variable_group(self, name: str, variables: dict[str, str]) -> VariableGroup:
response = self.post("/vars", json=dict(name=name, variables=variables))
response = self.post("/vars", params={"name": name}, json=variables)
handle_error_with_response(response)
return VariableGroup.model_validate(response.json())

Expand Down

0 comments on commit 86dded2

Please sign in to comment.