Fix crash if port has int type in yaml (#918)
All checks were successful
Lint Checks / Run linter (push) Successful in 38s
Publish / Build and publish (push) Successful in 1m18s
Deploy Test / Run deploy test suite (push) Successful in 4m36s
Webapp Test / Run webapp test suite (push) Successful in 4m24s
Smoke Test / Run basic test suite (push) Successful in 3m52s
All checks were successful
Lint Checks / Run linter (push) Successful in 38s
Publish / Build and publish (push) Successful in 1m18s
Deploy Test / Run deploy test suite (push) Successful in 4m36s
Webapp Test / Run webapp test suite (push) Successful in 4m24s
Smoke Test / Run basic test suite (push) Successful in 3m52s
Reviewed-on: #918 Reviewed-by: Thomas E Lackey <telackey@noreply.git.vdb.to> Co-authored-by: David Boreham <david@bozemanpass.com> Co-committed-by: David Boreham <david@bozemanpass.com>
This commit is contained in:
parent
265699bc38
commit
65c1cdf6b1
@ -89,7 +89,7 @@ class ClusterInfo:
|
|||||||
for raw_port in service_info["ports"]:
|
for raw_port in service_info["ports"]:
|
||||||
if opts.o.debug:
|
if opts.o.debug:
|
||||||
print(f"service port: {raw_port}")
|
print(f"service port: {raw_port}")
|
||||||
if ":" in raw_port:
|
if type(raw_port) is str and ":" in raw_port:
|
||||||
parts = raw_port.split(":")
|
parts = raw_port.split(":")
|
||||||
if len(parts) != 2:
|
if len(parts) != 2:
|
||||||
raise Exception(f"Invalid port definition: {raw_port}")
|
raise Exception(f"Invalid port definition: {raw_port}")
|
||||||
|
Loading…
Reference in New Issue
Block a user