use fsp_api_action in FSPUtils

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7006 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2010-08-09 06:40:45 +00:00
parent 466401693f
commit 72be03e99d

View File

@ -11,8 +11,8 @@ use xCAT::Table;
use Getopt::Long;
use File::Spec;
use xCAT::PPCrflash;
use Data::Dumper;
use xCAT::Utils;
#use Data::Dumper;
use xCAT::FSPUtils;
use xCAT::FSPinv;
use POSIX "WNOHANG";
use Storable qw(freeze thaw);
@ -320,7 +320,7 @@ sub fork_cmd {
close( $parent );
$pipe = $child;
$res = xCAT::Utils::fsp_api_action( $node_name, $attrs, $action );
$res = xCAT::FSPUtils::fsp_api_action( $node_name, $attrs, $action );
print "res\n";
print Dumper($res);
my %output;
@ -423,7 +423,7 @@ sub rflash {
if($flag2 > 1) {
last;
}
my $values = xCAT::Utils::fsp_api_action( $name, $d, "list_firmware_level");
my $values = xCAT::FSPUtils::fsp_api_action( $name, $d, "list_firmware_level");
# my $level = xCAT::PPCcli::lslic( $exp, $d, $timeout );
my $Rc = @$values[2];
my $level = @$values[1];