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
This commit is contained in:
jbjohnso 2013-01-17 21:43:09 +00:00
parent 445211b036
commit 05796434a8

View File

@ -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