From 50ad874909f21de9d68a66b7f4ef9af2b997476e Mon Sep 17 00:00:00 2001 From: "Fabio M. Di Nitto" Date: Sun, 24 Mar 2024 14:39:38 +0100 Subject: [PATCH] striker-collect-debug: fix collection of cib.xml Closes: #534 Signed-off-by: Fabio M. Di Nitto --- tools/striker-collect-debug | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/striker-collect-debug b/tools/striker-collect-debug index 4ad9701f..1ed40271 100755 --- a/tools/striker-collect-debug +++ b/tools/striker-collect-debug @@ -556,7 +556,10 @@ sub collect_remote_data $shell_call = "/usr/sbin/pcs cluster cib > /tmp/cib.xml"; $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { shell_call => $shell_call }}); - ($output, $return_code) = $anvil->System->call({shell_call => $shell_call}); + ($output, $error, $return_code) = $anvil->Remote->call({ + shell_call => $shell_call, + target => $anvil->data->{peer}{$short_host_name}{access}{ip}, + }); $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { output => $output, return_code => $return_code,