Skip to content

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
badrogger committed Nov 18, 2024
1 parent 17a9eea commit 204673a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/schains/firewall/nftables.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __init__(self, table: str = TABLE, chain: str = CHAIN) -> None:
self.table = table
self.chain = chain
self._nftables = importlib.import_module('nftables')
self.nft = self._nftables.NFTables()
self.nft = self._nftables.Nftables()
self.nft.set_json_output(True)

def _compose_json(self, commands: list[dict]) -> dict:
Expand Down

0 comments on commit 204673a

Please sign in to comment.