From 0c24de0ac7391bdbe6d47c1f9cf36323be320df1 Mon Sep 17 00:00:00 2001 From: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com> Date: Fri, 11 Oct 2024 18:23:28 -0500 Subject: [PATCH] fix(cluster): vargroup "latest" doesn't work (#135) --- silverback/cluster/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/silverback/cluster/client.py b/silverback/cluster/client.py index d612cee3..59113e4f 100644 --- a/silverback/cluster/client.py +++ b/silverback/cluster/client.py @@ -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)