This commit is contained in:
@@ -31,7 +31,7 @@ class NftManager:
|
|||||||
self.nft = Nftables()
|
self.nft = Nftables()
|
||||||
try:
|
try:
|
||||||
# Prefer JSON output where python-nftables may produce it, but we still treat stdout textually.
|
# Prefer JSON output where python-nftables may produce it, but we still treat stdout textually.
|
||||||
self.nft.set_json_output(True)
|
self.nft.set_json_output(False)
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.debug("set_json_output not available or ignored")
|
logger.debug("set_json_output not available or ignored")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user