Skip to content

Commit

Permalink
Refactor the condition
Browse files Browse the repository at this point in the history
  • Loading branch information
TOUFIKIzakarya committed Nov 6, 2024
1 parent 403d775 commit dac5ec1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def main():

if new_status in ["Ongoing", "Acknowledged"]:
update_status(new_status, mirror_direction, is_mirror_out, alert_short_id)
if comment and is_mirror_out and (mirror_direction is None or mirror_direction == "In"):
if comment and is_mirror_out:
post_comment(alert_short_id, comment, get_username())
readable_output = f"### Status of the alert changed to:\n {new_status}"
return_results(
Expand Down

0 comments on commit dac5ec1

Please sign in to comment.