Fix rspconfig bug 2801001:rspconfig with spdump does not work on P6 HE fsp

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3518 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhanx 2009-06-05 04:15:31 +00:00
parent fd7accf225
commit f559f74fd3

View File

@ -1513,12 +1513,18 @@ sub spdump {
$dump_setting = 0;
}
if ( $res->content !~ /$button/ ) {
return( [RC_ERROR,"'$button' button not found"] );
#################################################################
# For some firmware levels, button is changed to "initiate dump"
#################################################################
$button = "Initiate dump";
if ( $res->content !~ /$button/ ) {
return( [RC_ERROR,"'$button' button not found"] );
}
}
######################################
# We will lose conection after dump
######################################
$ua->timeout(5);
$ua->timeout(10);
######################################
# Send dump command
@ -1526,7 +1532,7 @@ sub spdump {
$res = $ua->post( "https://$server/cgi-bin/cgi",
[ form => $id,
bdmp => $dump_setting,
dump => "Save settings and initiate dump" ]
dump => $button ]
);
######################################
# Will lose connection on success -500