pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0025-Fix-DNS-policy-upgrade-raises-asertion-error.patch

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