Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Nov 28, 2023
1 parent 21e4de9 commit 28491b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions filter_plugins/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 0 additions & 1 deletion filter_plugins/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 28491b1

Please sign in to comment.