Update modules/firewall.py
This commit is contained in:
parent
ea2d94c987
commit
00a56d80b1
1 changed files with 8 additions and 1 deletions
|
|
@ -40,3 +40,10 @@ def parse_firewall_data(raw_json):
|
|||
continue
|
||||
|
||||
return rulesets
|
||||
|
||||
def parse_firewall_log_data(raw_json):
|
||||
if raw_json.get("success") and raw_json.get("data"):
|
||||
return raw_json["data"].replace('\n', '<br>')
|
||||
elif raw_json.get("error"):
|
||||
return f"Could not retrieve the logs: {raw_json['error']}"
|
||||
return "No log entries found for this line."
|
||||
Loading…
Add table
Add a link
Reference in a new issue