Fixed bug in update_rhosts subroutine.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1688 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2008-06-18 15:16:48 +00:00
parent f7cbe33bf3
commit b3349560bd
2 changed files with 4 additions and 2344 deletions

File diff suppressed because it is too large Load Diff

View File

@ -457,7 +457,7 @@ ll~;
}
# update the .rhosts file on the server so the rcp from the node works
if (&update_rhosts(@nodelist, $callback) != 0) {
if (&update_rhosts(\@nodelist, $callback) != 0) {
my $rsp;
push @{$rsp->{data}}, "Could not update the /.rhosts file.\n";
xCAT::MsgUtils->message("E", $rsp, $callback);
@ -1424,14 +1424,14 @@ sub mkScriptRes
#------------------------------------------------------------------------
sub update_rhosts
{
my @nodelist = shift;
my $nodelist = shift;
my $callback = shift;
my $rhostname ="/.rhosts";
my @addnodes;
# make a list of node entries to add
foreach my $node (@nodelist) {
foreach my $node (@$nodelist) {
# get the node IP for the file entry
# TODO - need IPv6 update
@ -2424,7 +2424,7 @@ ll~;
}
# update the .rhosts file on the server so the rcp from the node works
if (&update_rhosts(@nodelist, $callback) != 0) {
if (&update_rhosts(\@nodelist, $callback) != 0) {
my $rsp;
push @{$rsp->{data}}, "Could not update the /.rhosts file.\n";
xCAT::MsgUtils->message("E", $rsp, $callback);