Convert port to string.
Some checks failed
Lint Checks / Run linter (pull_request) Failing after 40s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m50s
Smoke Test / Run basic test suite (pull_request) Successful in 4m21s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m16s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 8m15s

This commit is contained in:
Thomas E Lackey 2024-08-13 19:02:30 -05:00
parent 65c1cdf6b1
commit ee7e5da42a

View File

@ -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}")