diff --git a/crmsh/report/collect.py b/crmsh/report/collect.py index 8699ed39d..3336cf0e6 100644 --- a/crmsh/report/collect.py +++ b/crmsh/report/collect.py @@ -359,9 +359,10 @@ def dump_runtime_state(workdir: str) -> None: ("-n1", "resources grouped by node"), ("-rf1", "resource fail counts"), ("-rnt1", "resource operation history with timing details"), + ("--output-as=xml", "XML format") ]: cmd = f"crm_mon {option}" - out += f"\n#### Display cluster state and {desc}: {cmd} ####\n" + out += f"\n#### Display cluster state with {desc}: {cmd} ####\n" out += cluster_shell_inst.get_stdout_or_raise_error(cmd) out += "\n\n" diff --git a/test/unittests/test_report_collect.py b/test/unittests/test_report_collect.py index 09292f5d5..abce1e569 100644 --- a/test/unittests/test_report_collect.py +++ b/test/unittests/test_report_collect.py @@ -491,6 +491,7 @@ def test_dump_runtime_state(self, mock_run, mock_str2file, mock_debug, mock_get_ "crm_mon_data_n1", "crm_mon_data_rf1", "crm_mon_data_rnt1", + "crm_mon_data_xml", "cib_data", "crm_node_data" ]