diff --git a/stack_orchestrator/deploy/k8s/cluster_info.py b/stack_orchestrator/deploy/k8s/cluster_info.py index fe953325..0fa3ebcb 100644 --- a/stack_orchestrator/deploy/k8s/cluster_info.py +++ b/stack_orchestrator/deploy/k8s/cluster_info.py @@ -86,10 +86,10 @@ class ClusterInfo: for service_name in services: service_info = services[service_name] if "ports" in service_info: - for raw_port in service_info["ports"]: + for raw_port in [ str(p) for p in service_info["ports"] ]: if opts.o.debug: print(f"service port: {raw_port}") - if type(raw_port) is str and ":" in raw_port: + if ":" in raw_port: parts = raw_port.split(":") if len(parts) != 2: raise Exception(f"Invalid port definition: {raw_port}")