2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-19 01:30:21 +00:00

Debug command output3

This commit is contained in:
Mark Gurevich
2022-07-13 11:27:26 -04:00
parent 72ee3d9ac9
commit 359c7b349e

View File

@@ -1568,7 +1568,7 @@ sub setup_env_by_configure_file {
#MG
my @output = &runcmd($cmd);
if ($::RUNCMD_RC != 0) {
$$error_ref = "Failed to run $cmd OUTPUT: @output";
$$error_ref = "Failed1 to run $cmd OUTPUT: @output";
log_this($running_log_fd, "$cmd", "OUTPUT ", @output);
return 1;
}
@@ -1582,9 +1582,9 @@ sub setup_env_by_configure_file {
$cmd = $cmd . " $attr=$$config_ref{object}{$type}{$name}{$attr}";
}
log_this($running_log_fd, "$cmd");
runcmd($cmd);
my @output = runcmd($cmd);
if ($::RUNCMD_RC != 0) {
$$error_ref = "Fail to run $cmd";
$$error_ref = "Failed2 to run $cmd";
return 1;
}
}
@@ -1601,9 +1601,9 @@ sub setup_env_by_configure_file {
}
}
log_this($running_log_fd, "$cmd");
&runcmd($cmd);
my @output = &runcmd($cmd);
if ($::RUNCMD_RC != 0) {
$$error_ref = "Fail to run $cmd";
$$error_ref = "Failed3 to run $cmd OUTPUT: @output";
return 1;
}
}