Skip to content

Commit

Permalink
fix(cluster): vargroup "latest" doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
fubuloubu authored Oct 11, 2024
1 parent 854919f commit f8ab5d5
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 @@ -112,7 +112,7 @@ def update(
def get_revision(self, revision: int | Literal["latest"] = "latest") -> VariableGroupInfo:
# TODO: Add `/latest` revision route
if revision == "latest":
revision = "" # type: ignore[assignment]
revision = -1 # NOTE: This works with how cluster does lookup

response = self.cluster.get(f"/variables/{self.id}/{revision}")
handle_error_with_response(response)
Expand Down

0 comments on commit f8ab5d5

Please sign in to comment.