The user provided fix for makedns issue of domain without dots, introduced new bug.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10280 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2011-08-12 11:17:36 +00:00
parent 00a10e2bbb
commit eea5c1c769

View File

@ -922,9 +922,10 @@ sub add_or_delete_records {
$ctx->{currnode}=$node;
$ctx->{currname}=$name;
$ctx->{currrevname}=$ip;
unless ($domain =~ /\.$/) { $domain = $domain.'.'; } #example.com becomes example.com.
my $tmpdm;
unless ($domain =~ /\.$/) { $tmpdm = $domain.'.'; } #example.com becomes example.com.
find_nameserver_for_dns($ctx,$revzone);
find_nameserver_for_dns($ctx,$domain);
find_nameserver_for_dns($ctx,$tmpdm);
}
}
my $zone;