fix bugs when check 'dev' or 'celogin1' status

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10117 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhaoertao 2011-07-19 08:10:58 +00:00
parent 8f17cd4cb6
commit 47f2caa77d

View File

@ -261,8 +261,7 @@ sub loginstate {
if (!$res->is_success()) {
return ([RC_ERROR, $res->status_line]);
}
if ($res->content =~ m#$log_name</td><td>(\w+)</td>#) {
if ($res->content =~ m#[\d\D]+Status[\d\D]+$log_name</td><td[^>]+>(\w+)</td>#) {
if ($res->content =~ m#[\d\D]+Status[\d\D]+$log_name</td><td[^>]?>(\w+)</td>#) {
my $out = sprintf("%9s: %8s", $log_name, $1);
return ( [SUCCESS, $out]);
} else {