Skip to content

Commit

Permalink
Fix: hahealth: return fail when report failed (bsc#1231840) (#1589)
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
liangxin1300 authored Oct 25, 2024
2 parents e3d8b01 + cf6309d commit bf02867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 All @@ -31,7 +31,7 @@ def extract_report():


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

analysis = ''
if os.path.isfile('health-report/analysis.txt'):
Expand Down

0 comments on commit bf02867

Please sign in to comment.