Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjagod1251 committed Jan 3, 2025
1 parent 31842a0 commit 88a11b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions silverback/cluster/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ def update(

if name is not None:
# Update metadata
response = self.cluster.put(f"/vars/{self.name}", json=dict(name=name))
response = self.cluster.put(f"/vars/{self.name}", json=dict(name="testname"))
handle_error_with_response(response)
if variables is not None:
# Create a new revision
variable_list = [f"{k}={v}" for k, v in variables.items() if v is not None]
response = self.cluster.put(f"/vars/{self.name}", json=dict(variables=variable_list))
data = {k: v for k, v in variables.items() if v is not None}
response = self.cluster.put(f"/vars/{self.name}", json=data)
handle_error_with_response(response)
return VariableGroup.model_validate(response.json())
return self
Expand Down

0 comments on commit 88a11b7

Please sign in to comment.