defect:2911776: use the runcmd to replace the run_xcmd to run the xdsh in the doAIXcopy

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4808 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2009-12-16 06:44:24 +00:00
parent c84997d8d5
commit fe3d108911

View File

@ -1077,11 +1077,16 @@ sub doAIXcopy
{
# if lpp_source is not defined on SN then next
my $scmd =
qq~/usr/sbin/lsnim -l $imagedef{$img}{lpp_source} 2>/dev/null~;
my $out =
xCAT::InstUtils->xcmd($callback, $subreq, "xdsh", $snkey, $scmd,
0);
#my $scmd =
# qq~/usr/sbin/lsnim -l $imagedef{$img}{lpp_source} 2>/dev/null~;
#my $out =
# xCAT::InstUtils->xcmd($callback, $subreq, "xdsh", $snkey, $scmd,
# 0);
# Here has an issue when call the xcmd, as a workaround to use the
# runcmd, it should be recovered after fixing the xcmd issue
my $scmd = "$::XCATROOT/bin/xdsh $snkey /usr/sbin/lsnim -l $imagedef{$img}{lpp_source} 2>/dev/null";
xCAT::Utils->runcmd("$scmd", -1);
if ($::RUNCMD_RC != 0)
{
next;