summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/host.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2014-06-10 15:57:30 +0200
committerMartin Kosek <mkosek@redhat.com>2014-06-11 09:22:36 +0200
commit47d8fec92f65833e157adb0ea136e14e1fa4cde3 (patch)
treebbdf99e2d65f100852f88d6b5e48e973de454df5 /ipalib/plugins/host.py
parent46faed0b4bb2169fd2be79809b9a65b77a72ee14 (diff)
downloadfreeipa-47d8fec92f65833e157adb0ea136e14e1fa4cde3.tar.gz
freeipa-47d8fec92f65833e157adb0ea136e14e1fa4cde3.tar.xz
freeipa-47d8fec92f65833e157adb0ea136e14e1fa4cde3.zip
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>
Diffstat (limited to 'ipalib/plugins/host.py')
-rw-r--r--ipalib/plugins/host.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py
index bd7a3a2ba..133d55356 100644
--- a/ipalib/plugins/host.py
+++ b/ipalib/plugins/host.py
@@ -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)