diff --git a/filter_plugins/rules.py b/filter_plugins/rules.py index 5009c24..28c5801 100644 --- a/filter_plugins/rules.py +++ b/filter_plugins/rules.py @@ -40,8 +40,7 @@ def nftables_format_var(cls, key: str, value: (str, list)) -> str: if isinstance(value, list): return f"define {cls.nftables_safe_name(key)} = {cls.nftables_format_list(value)}" - else: - return f"define {cls.nftables_safe_name(key)} = {value}" + return f"define {cls.nftables_safe_name(key)} = {value}" @classmethod def _translate_rule( diff --git a/filter_plugins/utils.py b/filter_plugins/utils.py index 070ce8c..f0ac726 100644 --- a/filter_plugins/utils.py +++ b/filter_plugins/utils.py @@ -79,4 +79,3 @@ def check_kernel_module(mod: str, kernel_mods: list) -> bool: return True # container etc return f'{mod}=y' in kernel_mods or f'{mod}=m' in kernel_mods -