Fix bug 2801563

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5448 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wuzhy 2010-03-12 01:39:08 +00:00
parent 264e9dba23
commit 8e7e7d97b6

View File

@ -1417,15 +1417,17 @@ sub sysdump {
# Get current dump settings
######################################
foreach ( my $i=0; $i<3; $i++ ) {
if ( ($html !~ s/Dump policy:\s+(\w+)//) and ($i == 0) ) {
goto ERROR;
} else {
next;
if ($i == 0) {
if ($html !~ /Dump policy:\s+(\w+)/) {
goto ERROR;
}
}
if ( ($html !~ s/selected value='(\d+)'//) and ($i != 0) ) {
if ($i != 0) {
if ($html !~ s/selected value='(\d+)'//) {
ERROR:
return( [RC_ERROR,"Error getting dump settings"] );
return( [RC_ERROR,"Error getting dump settings"] );
}
}
push @d, $1;