From b1d6199c9865d2e6ee6f041443ce986681efb84c Mon Sep 17 00:00:00 2001 From: lissav Date: Sun, 23 Jun 2013 10:55:24 +0000 Subject: [PATCH] add req->{status} to runxcmd for defect 3641 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16726 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Utils.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index bb6b52dca..69dc739a1 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -1339,6 +1339,10 @@ sub runxcmd_output { push @$::xcmd_outref, @{$resp->{data}}; } + if (defined($resp->{status})) + { + push @$::xcmd_outref, @{$resp->{status}}; + } if (defined($resp->{node})) { my $node = $resp->{node}->[0]; @@ -1410,6 +1414,10 @@ sub runxcmd_output2 { push @{$::xcmd_outref_hash->{data}}, @{$resp->{data}}; } + if (defined($resp->{status})) + { + push @{$::xcmd_outref_hash->{status}}, @{$resp->{status}}; + } if (defined($resp->{node})) { push @{$::xcmd_outref_hash->{node}}, @{$resp->{node}};