From af2ac3e38d52c11f089505d4f52e4ea447199960 Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Tue, 5 Jul 2022 17:22:19 +0200 Subject: [PATCH] feat(debug): Store OSError human debug output --- update-firewall-source.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/update-firewall-source.py b/update-firewall-source.py index 05f97c4..a9fd638 100644 --- a/update-firewall-source.py +++ b/update-firewall-source.py @@ -125,6 +125,10 @@ internal_empty_ok = [default["key"] for default in CONST.CFG_KNOWN_DEFAULTS if d config = ConfigParser(defaults=internal_defaults, converters={'list': lambda x: [i.strip() for i in x.split(',') if len(x) > 0]}) config.read(CONST.CFG_DEFAULT_ABS_PATH) +exit_code_desc = { + 5: "Unable to open firewalld direct rules file for reading", + 9: "Unable to open firewalld direct rules file for updating" +} def print_section_header(