Skip to content

Commit

Permalink
Liniting, and adding templates
Browse files Browse the repository at this point in the history
  • Loading branch information
dalwar23 committed Apr 25, 2024
1 parent 14fd3eb commit 50b8f73
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/kumaone/monitors.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,9 @@ def _delete_process_monitor_or_group(input_data=None):
delete_event_response = _sio_call("deleteMonitor", monitor_id)
if isinstance(delete_event_response, dict):
if delete_event_response["ok"]:
console.print(
f":ghost: '{monitor_name}' monitor deletion successful!", style="logging.level.info"
)
console.print(f":ghost: '{monitor_name}' monitor deletion successful!", style="logging.level.info")
else:
console.print(
f":crab: '{monitor_name}' monitor deletion unsuccessful!", style="logging.level.warning"
)
console.print(f":crab: '{monitor_name}' monitor deletion unsuccessful!", style="logging.level.warning")
else:
console.print(
f":red_circle: Something went wrong! {delete_event_response['msg']}", style="logging.level.error"
Expand Down

0 comments on commit 50b8f73

Please sign in to comment.