From 5d02531baa18b1ab8c2014a38c7bb572b0d3a36e Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 18 Sep 2013 08:20:28 -0400 Subject: [PATCH] fix extra output on -k interface --- xCAT-server/lib/xcat/plugins/updatenode.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index 07937d654..02890728f 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -1871,10 +1871,11 @@ sub getdata $output =~ s/Running of postscripts has completed/Redeliver security files has completed/; push @{$rsp->{$type}}, $output; - } - elsif ($output !~ /Running postscript|Error loading module/) - { + } else { + if (($output !~ (/Running postscript/)) && ($output !~ (/Error loading module/)) && ($output !~ /^\s*(\S+)\s*:\s*Remote_command_successful/) && ($output !~ /^\s*(\S+)\s*:\s*Remote_command_failed/)) + { push @{$rsp->{$type}}, "$output"; + } } } else{ # for non -k option then get the rest of the output if (($output !~ (/Error loading module/)) && ($output !~ /^\s*(\S+)\s*:\s*Remote_command_successful/) && ($output !~ /^\s*(\S+)\s*:\s*Remote_command_failed/))