Make zonenames absolute in host plugin

This is fix for regression caused by IDNA patch, zone names must be
absolute.

Reviewed-By: Nathaniel McCallum <npmccallum@redhat.com>
This commit is contained in:
Martin Basti authored and Martin Kosek committed 2014-06-11 09:22:36 +02:00
1 parent 46faed0b4b
commit 47d8fec92f
1 file changed
+3 -2
+3 -2
View File
@@ -453,7 +453,7 @@ class host_add(LDAPCreate):
check_reverse = not options.get('no_reverse', False)
add_records_for_host_validation('ip_address',
DNSName(host),
DNSName(domain),
DNSName(domain).make_absolute(),
options['ip_address'],
check_forward=True,
check_reverse=check_reverse)
@@ -505,7 +505,8 @@ class host_add(LDAPCreate):
if options.get('ip_address'):
add_reverse = not options.get('no_reverse', False)
add_records_for_host(DNSName(host), DNSName(domain),
add_records_for_host(DNSName(host),
DNSName(domain).make_absolute(),
options['ip_address'],
add_forward=True,
add_reverse=add_reverse)