fixed some uninitialized value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8479 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
aa7154a648
commit
a86e141d8c
@ -126,7 +126,11 @@ sub fsp_api_action {
|
||||
my $password = $password_hash->{password};
|
||||
$cmd = "$fsp_api -a $action -u $user -p $password -T $tooltype -t $type:$fsp_ip:$id:$node_name:";
|
||||
} else {
|
||||
$cmd = "$fsp_api -a $action -T $tooltype -t $type:$fsp_ip:$id:$node_name:$parameter";
|
||||
if( defined($parameter) ) {
|
||||
$cmd = "$fsp_api -a $action -T $tooltype -t $type:$fsp_ip:$id:$node_name:$parameter";
|
||||
} else {
|
||||
$cmd = "$fsp_api -a $action -T $tooltype -t $type:$fsp_ip:$id:$node_name:";
|
||||
}
|
||||
}
|
||||
|
||||
#print "cmd: $cmd\n";
|
||||
@ -139,7 +143,9 @@ sub fsp_api_action {
|
||||
# output the prompt
|
||||
#################
|
||||
#$outhash{ $node_name } = $res;
|
||||
$res =~ s/$node_name: //;
|
||||
if(defined($res)) {
|
||||
$res =~ s/$node_name: //;
|
||||
}
|
||||
return( [$node_name,$res, $Rc] );
|
||||
}
|
||||
|
||||
@ -219,7 +225,9 @@ sub fsp_state_action {
|
||||
# output the prompt
|
||||
#################
|
||||
#$outhash{ $node_name } = $res;
|
||||
$res[0] =~ s/$node_name: //;
|
||||
if( defined($res) ) {
|
||||
$res[0] =~ s/$node_name: //;
|
||||
}
|
||||
return( [$Rc,@res] );
|
||||
}
|
||||
|
||||
@ -373,7 +381,9 @@ sub fsp_api_create_parttion {
|
||||
# output the prompt
|
||||
#################
|
||||
#$outhash{ $node_name } = $res;
|
||||
$res =~ s/$fsp_name: //;
|
||||
if( defined($res) ) {
|
||||
$res =~ s/$fsp_name: //;
|
||||
}
|
||||
return( [$fsp_name,$res, $Rc] );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user