Ticket: https://fedorahosted.org/freeipa/ticket/4708
Patch attached.

--
Martin Basti

From 16b4b38d3feb09485c6af7033b46507ebb5df3a9 Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@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
---
 ipaserver/install/plugins/dns.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipaserver/install/plugins/dns.py b/ipaserver/install/plugins/dns.py
index 1aef837f63176cd307868c726460485fd4a004ed..f5bb6ac8cc4271195f369fcb15f289bb7673e194 100644
--- a/ipaserver/install/plugins/dns.py
+++ b/ipaserver/install/plugins/dns.py
@@ -65,7 +65,7 @@ class update_dnszones(PostUpdate):
             return (False, False, [])
 
         try:
-            zones = api.Command.dnszone_find(all=True)['result']
+            zones = api.Command.dnszone_find(all=True, raw=True)['result']
         except errors.NotFound:
             self.log.info('No DNS zone to update found')
             return (False, False, [])
-- 
1.8.3.1

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to