From 7a636c2dde5ffa2edd42c1b3c89f0a2757099f32 Mon Sep 17 00:00:00 2001 From: zphrs <z@zephiris.dev> Date: Sat, 15 Mar 2025 14:21:16 -0700 Subject: [PATCH] minor potential correctness change --- utils/containers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/containers.py b/utils/containers.py index e2de7c4..9d20fc9 100644 --- a/utils/containers.py +++ b/utils/containers.py @@ -13,7 +13,7 @@ import requests from .util import run_cmd_bg, Logger CONTAINER_ENGINE = os.getenv("ENGINE", "docker") -REBROADCAST_VIEW = os.getenv("REBROADCAST_VIEW", None) +REBROADCAST_VIEW = os.getenv("REBROADCAST_VIEW", "false") class ContainerBuilder: @@ -510,14 +510,14 @@ class ClusterConductor: f"Warning: Node {i} IP addr changed from {node.ip} to {container_ip}" ) node.ip = container_ip - if CONTAINER_ENGINE == "podman" or REBROADCAST_VIEW is not None: + if CONTAINER_ENGINE == "podman" or REBROADCAST_VIEW == "true": if hasattr(self, "_parent"): self._parent.clients[ node.index ].base_url = self.node_external_endpoint(node.index) view_changed = True if ( - (CONTAINER_ENGINE == "podman" or REBROADCAST_VIEW is not None) + (CONTAINER_ENGINE == "podman" or REBROADCAST_VIEW == "true") and view_changed and hasattr(self, "_parent") ): -- GitLab