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/branches/2.6@10281 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing
2011-08-12 11:23:59 +00:00
parent 08d6ccb1e4
commit 7f109189f7
+3 -2
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;