From a7fdb85235909e8498f0b8b257bbab5825c3c338 Mon Sep 17 00:00:00 2001
From: Martin Basti <mbasti@redhat.com>
Date: Fri, 7 Nov 2014 15:09:29 +0100
Subject: [PATCH] Fix: DNS policy upgrade raises asertion error
Ticket: https://fedorahosted.org/freeipa/ticket/4708
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
---
ipaserver/install/plugins/dns.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ipaserver/install/plugins/dns.py b/ipaserver/install/plugins/dns.py
index 1aef837f63176cd307868c726460485fd4a004ed..62cf588d27155acb03026f69ea09ff15582d26dc 100644
--- a/ipaserver/install/plugins/dns.py
+++ b/ipaserver/install/plugins/dns.py
@@ -86,7 +86,9 @@ class update_dnszones(PostUpdate):
api.env.realm)
if update:
- api.Command.dnszone_mod(zone[u'idnsname'][0], **update)
+ # FIXME: https://fedorahosted.org/freeipa/ticket/4722
+ api.Command.dnszone_mod(zone[u'idnsname'][0].make_absolute(),
+ **update)
return (False, False, [])
--
2.1.0