From 2dd34334e44f5a374f963d8001d8569ddad98b5b Mon Sep 17 00:00:00 2001 From: Alexander Aghili <alexander.w.aghili@gmail.com> Date: Fri, 14 Mar 2025 11:49:01 -0700 Subject: [PATCH] add get_view back --- utils/containers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/containers.py b/utils/containers.py index ac3509c..1c677cd 100644 --- a/utils/containers.py +++ b/utils/containers.py @@ -44,6 +44,9 @@ class ClusterNode: ) networks: List[str] # networks the container is attached to + def get_view(self) -> str: + return {"address": f"{self.ip}:{self.port}", "id": self.index} + def internal_endpoint(self) -> str: return f"http://{self.ip}:{self.port}" -- GitLab