From 1a19a819d888c0844cc8414dc7ca28dfafc00239 Mon Sep 17 00:00:00 2001 From: malmert Date: Sat, 28 Feb 2026 23:11:55 +0100 Subject: [PATCH] test --- backend/src/api/nft_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/api/nft_manager.py b/backend/src/api/nft_manager.py index 1d54fd1..5f3e465 100644 --- a/backend/src/api/nft_manager.py +++ b/backend/src/api/nft_manager.py @@ -33,6 +33,7 @@ class NftManager: # Try to prefer JSON for general listing; we'll toggle off for chain-list calls. try: self.nft.set_json_output(True) + self.nft.set_handle_output(True) except Exception: logger.debug("set_json_output not available or ignored") @@ -69,7 +70,7 @@ class NftManager: Returns raw textual output on success, raises NftError on failure. """ self.nft.set_json_output(False) # best-effort attempt to disable JSON output - res = self.cmd("list ruleset -a") + res = self.cmd("list ruleset") self.nft.set_json_output(True) # restore JSON output preference if res["rc"] != 0: raise NftError(f"nft list ruleset failed: {res['stderr']}")