Dynamically load FSP module - Line #530

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@746 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sakolish 2008-03-10 19:08:34 +00:00
parent 175c3937b0
commit bdc2e4511f

View File

@ -8,8 +8,7 @@ use POSIX "WNOHANG";
use Storable qw(freeze thaw);
use Time::HiRes qw(gettimeofday);
use IO::Select;
use xCAT::PPCcli;
use xCAT::PPCfsp;
use xCAT::PPCcli;
use xCAT::GlobalDef;
@ -524,6 +523,15 @@ sub invoke_cmd {
# Direct-attached FSP handler
########################################
if ( $hwtype eq "fsp" ) {
####################################
# Dynamically load FSP module
####################################
eval { require xCAT::PPCfsp };
if ( $@ ) {
send_msg( $request, 1, $@ );
return;
}
my @exp = xCAT::PPCfsp::connect( $request, $host );
####################################