-Remove confilicting hosts file entries

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3516 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-06-04 19:12:04 +00:00
parent 23b516e289
commit fd7accf225
2 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,7 @@
package xCAT::Table;
use Sys::Syslog;
use Data::Dumper;
use IO::Socket::UNIX;
BEGIN
{
$::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : -d '/opt/xcat' ? '/opt/xcat' : '/usr';
@ -25,6 +26,9 @@ require xCAT::NodeRange;
use Text::Balanced qw(extract_bracketed);
require xCAT::NotifHandler;
my $dbworkerpid; #The process id of the database worker
my $dbworkersocket;
my $dbsockpath;
#--------------------------------------------------------------------------------
=head1 xCAT::Table

View File

@ -33,7 +33,6 @@ sub addnode {
while ($idx <= $#hosts) {
if ($hosts[$idx] =~ /^${ip}\s/ or $hosts[$idx] =~ /^\d+\.\d+\.\d+\.\d+\s+${node}[\s\.r/) {
#TODO: if foundone, delete a dupe
if ($foundone) {
$hosts[$idx]="";
} else {