Fix code. Check out of sequence

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@714 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2008-03-06 19:14:01 +00:00
parent 2fe6e7300a
commit ae2bf642d2

View File

@ -34,23 +34,23 @@ sub handled_commands
if (xCAT::Utils->isServiceNode())
{
my @nodeinfo = xCAT::Utils->determinehostname;
my $nodename = pop @nodeinfo; # get hostname
my @nodeipaddr = @nodeinfo; # get ip addresses
my $nodename = pop @nodeinfo; # get hostname
my @nodeipaddr = @nodeinfo; # get ip addresses
my $service = "tftpserver";
# check to see if service required
$rc = xCAT::Utils->isServiceReq($nodename, $service,\@nodeipaddr);
$rc = xCAT::Utils->isServiceReq($nodename, $service, \@nodeipaddr);
if ($rc != 1) # service not required
{
return 0;
}
}
$rc = &setup_TFTP($nodename); # setup TFTP
if ($rc == 0)
{
if (xCAT::Utils->isServiceNode())
$rc = &setup_TFTP($nodename); # setup TFTP
if ($rc == 0)
{
xCAT::Utils->update_xCATSN($service);
if (xCAT::Utils->isServiceNode())
{
xCAT::Utils->update_xCATSN($service);
}
}
}
return $rc;