From 7a9e6bf31c4cd91f824ca8a0d698d1a203944496 Mon Sep 17 00:00:00 2001 From: Aleksei Burlakov Date: Mon, 21 Oct 2024 13:10:44 +0200 Subject: [PATCH] Fix: hahealth: return fail when report failed (bsc#1231840) This will help external applications (e.g. hawk) better understand the result of the 'crm script run health' execution. --- scripts/health/hahealth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/health/hahealth.py b/scripts/health/hahealth.py index f9a2e1dee..026f1fd53 100755 --- a/scripts/health/hahealth.py +++ b/scripts/health/hahealth.py @@ -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():