Fix bug 2801563

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5444 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wuzhy 2010-03-11 11:01:21 +00:00
parent ee4fa1e7f7
commit 4b01f82e1c

View File

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