fix defect 4222 [FVT on P8 BE with HMC] rspconfig returns hmc plugin bug
This commit is contained in:
parent
3c97d11beb
commit
f3c2e1f22d
@ -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";
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user