diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index b89750dbf..ebf11a5e6 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -1307,6 +1307,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]; @@ -1378,6 +1382,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}};