This commit is contained in:
@@ -64,7 +64,7 @@ class NftManager:
|
||||
res = self.nft.json_cmd("list ruleset")
|
||||
if res[0] != 0:
|
||||
raise NftError(f"nft list ruleset failed: {res[2]}")
|
||||
return res[1]
|
||||
return json.loads(res[1])
|
||||
|
||||
def list_chain_text(self, family: str, table: str, chain: str) -> str:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user