This commit is contained in:
@@ -888,13 +888,6 @@ def list_rules():
|
|||||||
populate_text_from_ruleset_text(custom, nft_text)
|
populate_text_from_ruleset_text(custom, nft_text)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.debug("list_rules: populate_text_from_ruleset_text failed: %s", e)
|
logger.debug("list_rules: populate_text_from_ruleset_text failed: %s", e)
|
||||||
|
|
||||||
# If some chains still look unpopulated, attempt per-chain listing fallback
|
|
||||||
try:
|
|
||||||
populate_text_from_chain_text(custom)
|
|
||||||
except Exception as e:
|
|
||||||
logger.debug("list_rules: populate_text_from_chain_text failed: %s", e)
|
|
||||||
|
|
||||||
return RulesetModel.parse_obj(custom)
|
return RulesetModel.parse_obj(custom)
|
||||||
except NftError as e:
|
except NftError as e:
|
||||||
logger.exception("list_rules failed")
|
logger.exception("list_rules failed")
|
||||||
|
|||||||
Reference in New Issue
Block a user