From 8bef62719bcfe73f32c05e24c789eb0361b12f87 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 1 Jun 2010 19:21:52 +0000 Subject: [PATCH] -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 --- xCAT-server/lib/xcat/plugins/windows.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/windows.pm b/xCAT-server/lib/xcat/plugins/windows.pm index 7f4696543..286469057 100644 --- a/xCAT-server/lib/xcat/plugins/windows.pm +++ b/xCAT-server/lib/xcat/plugins/windows.pm @@ -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); }