Skip to content

Commit

Permalink
Fix: hahealth: return fail when report failed (bsc#1231840)
Browse files Browse the repository at this point in the history
This will help external applications (e.g. hawk) better understand
the result of the 'crm script run health' execution.
  • Loading branch information
Aleksei Burlakov committed Oct 21, 2024
1 parent 0573690 commit 7a9e6bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/health/hahealth.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def create_report():


if not create_report():
crm.exit_ok({'status': 'Failed to create report'})
crm.exit_fail({'status': 'Failed to create report'})


def extract_report():
Expand Down

0 comments on commit 7a9e6bf

Please sign in to comment.