diff --git a/crmsh/report/collect.py b/crmsh/report/collect.py index 0bba8eb3c..cf3fba572 100644 --- a/crmsh/report/collect.py +++ b/crmsh/report/collect.py @@ -358,9 +358,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 3cf272251..ca8ce7efb 100644 --- a/test/unittests/test_report_collect.py +++ b/test/unittests/test_report_collect.py @@ -472,6 +472,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" ]