fixed defect 3458235, get_compatible_version_from_rpm also will check the directory of the firmware files

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@11225 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua
2011-12-13 07:13:43 +00:00
parent 4364be67fc
commit 1bf336a3f8
+1 -1
View File
@@ -146,7 +146,7 @@ sub fsp_api_action {
my $cmd;
my $install_dir = xCAT::Utils->getInstallDir();
if( $action =~ /^code_update$/) {
if( $action =~ /^(code_update|get_compatible_version_from_rpm)$/) {
$cmd = "$fsp_api -a $action -T $tooltype -t $type:$fsp_ip:$id:$node_name:$parameter -d $install_dir/packages_fw/";
} elsif($action =~ /^add_connection$/) {
$cmd = "$fsp_api -a $action -u $user -p $password -T $tooltype -t $type:$fsp_ip:$id:$node_name:";