From 4caea2d941db657aa294f96022e0259d69a7becb Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 24 Jan 2021 21:12:11 +0100 Subject: [PATCH] Check if 'webui' is abset when Ingress is enabled (#20) --- src/lint.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lint.py b/src/lint.py index 0f7afe5..e4dfa86 100644 --- a/src/lint.py +++ b/src/lint.py @@ -57,6 +57,10 @@ def is_default(validator, properties, instance, schema): print(f"::error file={config}::{error.message}") exit_code = 1 +if configuration.get("ingress", False) and configuration.get("webui"): + print(f"::error file={config}::'webui' should be removed, Ingress is enabled.") + exit_code = 1 + build = path / "build.json" if build.exists(): with open(build) as fp: