-Skip link creation if Windows system won't resolve (TODO, have winpe able to figure out nodename client side to render this moot)

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6294 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2010-06-01 19:21:52 +00:00
parent 674c7e029b
commit 8bef62719b

View File

@ -392,7 +392,10 @@ sub mkinstall
}
sub getips { #TODO: all the possible ip addresses
my $node = shift;
my $ip = inet_ntoa(inet_aton($node));;
my $ipn = inet_aton($node); #would use proper method, but trying to deprecate this anyhow
unless ($ipn) { return (); }
#THIS CURRENTLY WOULD BREAK WITH IPV6 anyway...
my $ip = inet_ntoa($ipn);
return ($ip);
}