Convert port to string. (#919)
Lint Checks / Run linter (push) Failing after 4s
Details
Webapp Test / Run webapp test suite (push) Failing after 3s
Details
Publish / Build and publish (push) Failing after 5s
Details
Deploy Test / Run deploy test suite (push) Failing after 3s
Details
Smoke Test / Run basic test suite (push) Failing after 3s
Details
Lint Checks / Run linter (push) Failing after 4s
Details
Webapp Test / Run webapp test suite (push) Failing after 3s
Details
Publish / Build and publish (push) Failing after 5s
Details
Deploy Test / Run deploy test suite (push) Failing after 3s
Details
Smoke Test / Run basic test suite (push) Failing after 3s
Details
The str type check doesn't work if the port is a ruamel.yaml.scalarstring.SingleQuotedScalarString or ruamel.yaml.scalarstring.DoubleQuotedScalarString Reviewed-on: https://git.vdb.to/cerc-io/stack-orchestrator/pulls/919 Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com> Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>telackey/defaultplatform v1.1.0-8576137-202408140025
parent
65c1cdf6b1
commit
8576137557
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue