fix thisnode is not handling of invalid names

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2292 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2008-10-07 16:48:45 +00:00
parent 5f0e5dad2b
commit 1a338aed42

View File

@ -1593,8 +1593,9 @@ sub thishostisnot
my @ips = split /\n/, `/sbin/ip addr`;
my $comp = inet_aton($comparison);
foreach (@ips)
{
if ($comp) {
foreach (@ips)
{
if (/^\s*inet/)
{
my @ents = split(/\s+/);
@ -1607,6 +1608,7 @@ sub thishostisnot
#print Dumper(inet_aton($ip));
}
}
}
return 1;
}