From be3b65f3a4567e07f591a267321c2e9f80ac9baa Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Tue, 5 Jul 2022 04:46:15 +0200 Subject: [PATCH] docs(meta): Document exit codes --- update-firewall-source.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/update-firewall-source.py b/update-firewall-source.py index 4af11d4..cebaa8a 100644 --- a/update-firewall-source.py +++ b/update-firewall-source.py @@ -19,8 +19,20 @@ import lxml.builder # Exit codes -# 1: Config file invalid, it has no sections -# 2: Config file invalid, sections must define at least CONST.CFG_MANDATORY +# 1 : Config file invalid, it has no sections +# 2 : Config file invalid, sections must define at least CONST.CFG_MANDATORY +# 3 : Performing a firewalld rules check failed +# 4 : Performing a firewalld rules encountered a FileNotFoundError +# 5 : Unable to open firewalld direct rules file +# 6 : Source and destination are identical when attempting to back up firewalld direct rules file +# 7 : An option that must have a non-null value is either unset or null +# 8 : Exception while adding a chain XML element to firewalld direct rules +# 9 : Unable to open firewalld direct rules file for updating +# 10: Unable to restart systemd firewalld.service unit +# 11: Unable to add a tag to firewalld +# 12: Kernel sysfs export for network devices at "/sys/class/net" doesn't exist +# 13: Linux find command exited non-zero trying to find a physical network device at "/sys/class/net" +# 14: No physical network device found at "/sys/class/net" class CONST(object):