From 182597b92b5c2206b84eb1334de598390f694c3c Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 16 Nov 2012 14:45:01 +0000 Subject: [PATCH] got updatestatus for -P -F working for Linux git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14351 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/updatenode.pm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index 8712ed610..17694053f 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -1714,6 +1714,18 @@ sub getdata { chomp($output); $output =~ s/\\cM//; + if($output =~ /^\s*(\S+)\s*:\s*Remote_command_successful/) + { + my ($node,$info) = split (/:/, $output); + push(@::SUCCESSFULLNODES,$node); + } + if($output =~ /^\s*(\S+)\s*:\s*Remote_command_failed/) + { + my ($node,$info) = split (/:/, $output); + push(@::FAILEDNODES,$node); + } + + if ($output =~ /returned from postscript/) { $output =~ @@ -1732,7 +1744,7 @@ sub getdata push @{$rsp->{$type}}, "$output"; } } - elsif ($output !~ /Error loading module/) + if (($output !~ (/Error loading module/)) && ($output !~ /^\s*(\S+)\s*:\s*Remote_command_successful/) && ($output !~ /^\s*(\S+)\s*:\s*Remote_command_failed/)) { push @{$rsp->{$type}}, "$output"; }