diff --git a/utils/containers.py b/utils/containers.py index ac3509c02f99cbe844dd8fc55f14bc1284360474..1c677cd84e94aa7041930a4d5d434a38a9c2b132 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}"