From 7b3ebde367ba578f7656480aedd7f2ac66b29a24 Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Tue, 5 Jul 2022 04:45:31 +0200 Subject: [PATCH] docs(config): Remove per-section values, we don't need those --- update-firewall-source.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/update-firewall-source.py b/update-firewall-source.py index 44a87c4..09cb0b2 100644 --- a/update-firewall-source.py +++ b/update-firewall-source.py @@ -52,10 +52,8 @@ class CONST(object): # make sense. We use 'is_mandatory' to determine if we have to raise errors on missing settings. Here # 'is_mandatory' means the setting must be given in a '[section]'. It may be empty. CFG_KNOWN_SECTION = [ - {"key": "target", "is_mandatory": False}, - {"key": "addr", "is_mandatory": False}, - {"key": "ports", "is_mandatory": False}, - {"key": "proto", "is_mandatory": False} + # {"key": "an_option", "is_mandatory": True}, + # {"key": "another_one", "is_mandatory": False} ] CFG_MANDATORY = [section_cfg["key"] for section_cfg in CFG_KNOWN_SECTION if section_cfg["is_mandatory"]]