Skip to content

Commit

Permalink
Add checks if ports & ports_description match (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Jan 24, 2021
1 parent 4caea2d commit c82c5e9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ def is_default(validator, properties, instance, schema):
print(f"::error file={config}::'webui' should be removed, Ingress is enabled.")
exit_code = 1

if "ports" in configuration and "ports_description" not in configuration:
print(f"::error file={config}::'ports' is defined without 'ports_description'.")
exit_code = 1

if set(configuration.get("ports", {})) != set(
configuration.get("ports_description", {})
):
print(f"::error file={config}::'ports' and 'ports_description' do not match.")
exit_code = 1

build = path / "build.json"
if build.exists():
with open(build) as fp:
Expand Down

0 comments on commit c82c5e9

Please sign in to comment.