fix extra output on -k interface

This commit is contained in:
lissav 2013-09-18 08:20:28 -04:00
parent a0370be23f
commit 5d02531baa

View File

@ -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/))