diff --git a/perl-xCAT/xCAT/PPCfsp.pm b/perl-xCAT/xCAT/PPCfsp.pm index 773bd441b..9ae78cb1e 100644 --- a/perl-xCAT/xCAT/PPCfsp.pm +++ b/perl-xCAT/xCAT/PPCfsp.pm @@ -144,12 +144,16 @@ sub connect { ################################## # Set options ################################## - my $hosttab = xCAT::Table->new( 'hosts' ); - if ( $hosttab) { - my $hostshash = $hosttab->getNodeAttribs( $server, [qw(ip otherinterfaces)]); - if ( $hostshash ) { - $server = $hostshash->{ip}; - } + #my $hosttab = xCAT::Table->new( 'hosts' ); + #if ( $hosttab) { + # my $hostshash = $hosttab->getNodeAttribs( $server, [qw(ip otherinterfaces)]); + # if ( $hostshash ) { + # $server = $hostshash->{ip}; + # } + #} + $server = xCAT::NetworkUtils::getNodeIPaddress( $server ); + unless ($server) { + return( "Unable to get IP address for $server" ); } # my $serverip = inet_ntoa(inet_aton($server)); my $url = "https://$server/cgi-bin/cgi?form=2"; diff --git a/xCAT-server/lib/perl/xCAT/PPC.pm b/xCAT-server/lib/perl/xCAT/PPC.pm index 865f313fe..4b382f197 100755 --- a/xCAT-server/lib/perl/xCAT/PPC.pm +++ b/xCAT-server/lib/perl/xCAT/PPC.pm @@ -2197,9 +2197,10 @@ sub process_request { #if( $request->{hwtype} ne 'hmc' ) { if( $request->{hwtype} !~ /hmc|ivm/ ) { $request->{fsp_api} = 1; - #For using rspconfig to disable/enable dev/celogin1 through ASMI - my $arg = $request->{arg}; - if($request->{command} eq "rspconfig" and grep(/^(dev|celogin1)/, @$arg)) { + #For using rspconfig options through ASMI + #my $arg = $request->{arg}; + #if($request->{command} eq "rspconfig" and grep(/^(dev|celogin1)/, @$arg)) { + if($request->{command} eq "rspconfig" and ref($request->{method}) eq 'HASH') { $request->{fsp_api} = 0; } } else {