Skip to content

Commit

Permalink
Fix: hahealth.py script (#1488)
Browse files Browse the repository at this point in the history
There are two changes:
1) use tar gz (now reports are tar.gz)
2) remove -D flag from the crm_report (obsolete)
  • Loading branch information
liangxin1300 authored Jul 16, 2024
2 parents 72c64e6 + 6d6dc01 commit b2d65eb
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 @@ -16,7 +16,7 @@ def get_from_date():
def create_report():
cmd = ['crm', 'report',
'-f', get_from_date(),
'-D', '-Z', 'health-report']
'-Z', 'health-report']
rc, out, err = crm.call(cmd, shell=False)
return rc == 0

Expand All @@ -26,7 +26,7 @@ def create_report():


def extract_report():
rc, out, err = crm.call(['tar', 'xjf', 'health-report.tar.bz2'], shell=False)
rc, out, err = crm.call(['tar', 'xzf', 'health-report.tar.gz'], shell=False)
return rc == 0


Expand Down

0 comments on commit b2d65eb

Please sign in to comment.