diff --git a/perl-xCAT/xCAT/PPCfsp.pm b/perl-xCAT/xCAT/PPCfsp.pm index 310f6e14f..b54c1b3e6 100644 --- a/perl-xCAT/xCAT/PPCfsp.pm +++ b/perl-xCAT/xCAT/PPCfsp.pm @@ -261,8 +261,7 @@ sub loginstate { if (!$res->is_success()) { return ([RC_ERROR, $res->status_line]); } - if ($res->content =~ m#$log_name(\w+)#) { - if ($res->content =~ m#[\d\D]+Status[\d\D]+$log_name]+>(\w+)#) { + if ($res->content =~ m#[\d\D]+Status[\d\D]+$log_name]?>(\w+)#) { my $out = sprintf("%9s: %8s", $log_name, $1); return ( [SUCCESS, $out]); } else {