Skip to content

Commit

Permalink
Update ui action files according to UI state in dev branch
Browse files Browse the repository at this point in the history
  • Loading branch information
TheophileDiot committed Aug 19, 2024
1 parent c3b785c commit beb1708
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion clamav/ui/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def clamav(app, *args, **kwargs):
if "INSTANCES" in app.config:
ping_data = app.config["INSTANCES"].get_ping("clamav")
else:
ping_data = app.bw_instances_utils.get_ping("clamav")
ping_data = kwargs["bw_instances_utils"].get_ping("clamav")

ping = {"ping_status": ping_data["status"]}
except BaseException:
Expand Down
2 changes: 1 addition & 1 deletion coraza/ui/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def coraza(app, *args, **kwargs):
if "INSTANCES" in app.config:
ping_data = app.config["INSTANCES"].get_ping("coraza")
else:
ping_data = app.bw_instances_utils.get_ping("coraza")
ping_data = kwargs["bw_instances_utils"].get_ping("coraza")

ping = {"ping_status": ping_data["status"]}
except BaseException:
Expand Down
2 changes: 1 addition & 1 deletion crowdsec/ui/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def crowdsec(app, *args, **kwargs):
if "INSTANCES" in app.config:
ping_data = app.config["INSTANCES"].get_ping("crowdsec")
else:
ping_data = app.bw_instances_utils.get_ping("crowdsec")
ping_data = kwargs["bw_instances_utils"].get_ping("crowdsec")

ping = {"ping_status": ping_data["status"]}
except BaseException:
Expand Down
2 changes: 1 addition & 1 deletion discord/ui/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def discord(app, *args, **kwargs):
if "INSTANCES" in app.config:
ping_data = app.config["INSTANCES"].get_ping("discord")
else:
ping_data = app.bw_instances_utils.get_ping("discord")
ping_data = kwargs["bw_instances_utils"].get_ping("discord")

ping = {"ping_status": ping_data["status"]}
except BaseException:
Expand Down
2 changes: 1 addition & 1 deletion slack/ui/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def slack(app, *args, **kwargs):
if "INSTANCES" in app.config:
ping_data = app.config["INSTANCES"].get_ping("slack")
else:
ping_data = app.bw_instances_utils.get_ping("slack")
ping_data = kwargs["bw_instances_utils"].get_ping("slack")

ping = {"ping_status": ping_data["status"]}
except BaseException:
Expand Down
2 changes: 1 addition & 1 deletion virustotal/ui/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def virustotal(app, *args, **kwargs):
if "INSTANCES" in app.config:
ping_data = app.config["INSTANCES"].get_ping("virustotal")
else:
ping_data = app.bw_instances_utils.get_ping("virustotal")
ping_data = kwargs["bw_instances_utils"].get_ping("virustotal")

ping = {"ping_status": ping_data["status"]}
except BaseException:
Expand Down
2 changes: 1 addition & 1 deletion webhook/ui/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def webhook(app, *args, **kwargs):
if "INSTANCES" in app.config:
ping_data = app.config["INSTANCES"].get_ping("webhook")
else:
ping_data = app.bw_instances_utils.get_ping("webhook")
ping_data = kwargs["bw_instances_utils"].get_ping("webhook")

ping = {"ping_status": ping_data["status"]}
except BaseException:
Expand Down

0 comments on commit beb1708

Please sign in to comment.