summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2011-01-18 15:33:40 -0500
committerAdam Young <ayoung@redhat.com>2011-01-18 12:46:53 -0500
commit74ad4f3d7d72d8095ec5b56ba849f2aa9adcb691 (patch)
tree28769cc2c7fdb528905240cf178550b0c7fd42c7 /ipalib
parent687324c19360854d6b37b1793b231282c2a05f8f (diff)
downloadfreeipa-74ad4f3d7d72d8095ec5b56ba849f2aa9adcb691.tar.gz
freeipa-74ad4f3d7d72d8095ec5b56ba849f2aa9adcb691.tar.xz
freeipa-74ad4f3d7d72d8095ec5b56ba849f2aa9adcb691.zip
Fix updating of DNS records by the host plugin.
Fix #799
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/host.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py
index d09f0eb41..0a407058e 100644
--- a/ipalib/plugins/host.py
+++ b/ipalib/plugins/host.py
@@ -345,9 +345,9 @@ class host_add(LDAPCreate):
parts = keys[-1].split('.')
domain = unicode('.'.join(parts[1:]))
if ':' in options['ip_address']:
- addkw = { u'aaaarecord' : options['ip_address'] }
+ addkw = { 'aaaarecord' : options['ip_address'] }
else:
- addkw = { u'arecord' : options['ip_address'] }
+ addkw = { 'arecord' : options['ip_address'] }
try:
api.Command['dnsrecord_add'](domain, parts[0], **addkw)
except errors.EmptyModlist:
@@ -355,7 +355,7 @@ class host_add(LDAPCreate):
pass
revzone, revname = get_reverse_zone(options['ip_address'])
try:
- addkw = { u'ptrrecord' : keys[-1]+'.' }
+ addkw = { 'ptrrecord' : keys[-1]+'.' }
api.Command['dnsrecord_add'](revzone, revname, **addkw)
except errors.EmptyModlist:
# the entry already exists and matches
@@ -443,12 +443,12 @@ class host_del(LDAPDelete):
self.debug('deleting ipaddr %s' % ipaddr)
revzone, revname = get_reverse_zone(ipaddr)
try:
- delkw = { u'ptrrecord' : fqdn+'.' }
+ delkw = { 'ptrrecord' : fqdn+'.' }
api.Command['dnsrecord_del'](revzone, revname, **delkw)
except errors.NotFound:
pass
try:
- delkw = { u'arecord' : ipaddr }
+ delkw = { 'arecord' : ipaddr }
api.Command['dnsrecord_del'](domain, parts[0], **delkw)
except errors.NotFound:
pass