From ae2bf642d22d0149ae4e2ff1c0b375f041fee449 Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 6 Mar 2008 19:14:01 +0000 Subject: [PATCH] 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 --- xCAT-server-2.0/lib/xcat/plugins/TFTPsn.pm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/xCAT-server-2.0/lib/xcat/plugins/TFTPsn.pm b/xCAT-server-2.0/lib/xcat/plugins/TFTPsn.pm index 298686600..63f2f79c6 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/TFTPsn.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/TFTPsn.pm @@ -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;