diff --git a/perl-xCAT/xCAT/Client.pm b/perl-xCAT/xCAT/Client.pm index fd4aeeed8..d865d12ec 100644 --- a/perl-xCAT/xCAT/Client.pm +++ b/perl-xCAT/xCAT/Client.pm @@ -256,7 +256,7 @@ if (ref($request) eq 'HASH') { # the request is an array, not pure XML } $newdata=1; $response .= $line; - if ($line =~ m/<\/xcatresponse>/) { + if ($line =~ m/<\/xcatresponse>\s*\z/) { if ($line =~ /serverdone/) { $coalescenow=1; } #if serverdone was detected, hint at coalesce code to flush things out now #this means that coalesce can be triggered by stray words in the output prematurely, but that's harmless #replace ESC with xxxxESCxxx because XMLin cannot handle it