From 05796434a8d8c638f9f0a947081d81a3f1fcf406 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 17 Jan 2013 21:43:09 +0000 Subject: [PATCH] Have xcatd not print warnings in the event of non-resolvable cirumstance git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14913 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatd | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 2c375d4d3..efc1d7838 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -973,11 +973,13 @@ if ($inet6support) { $peerfqdn=$peerhost; my $peerhostorg=$peerhost; # save original with domain for validation - my @hosts; - push (@hosts, $peerhost); - my $nd = xCAT::NetworkUtils->getNodeDomains(\@hosts); - my %nodedomains = %$nd; - $domain = $nodedomains{$peerhost}; + if ($peerhost) { + my @hosts; + push (@hosts, $peerhost); + my $nd = xCAT::NetworkUtils->getNodeDomains(\@hosts); + my %nodedomains = %$nd; + $domain = $nodedomains{$peerhost}; + } if ($domain) { # strip off domain if set