From fe3d10891110a7c9663adcb4d13e4d1c98c8e07d Mon Sep 17 00:00:00 2001 From: daniceexi Date: Wed, 16 Dec 2009 06:44:24 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/updatenode.pm | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index c7f2453ea..bca67d7f5 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -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;