Blob Blame History Raw
From c466f49b39869ec9817cda4a0485b00a14c52782 Mon Sep 17 00:00:00 2001
From: Martin Basti <mbasti@redhat.com>
Date: Wed, 25 Nov 2015 09:57:07 +0100
Subject: [PATCH] Fix upgrade of forwardzones when zone is in realmdomains

https://fedorahosted.org/freeipa/ticket/5472

Reviewed-By: Petr Spacek <pspacek@redhat.com>
---
 ipalib/plugins/realmdomains.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ipalib/plugins/realmdomains.py b/ipalib/plugins/realmdomains.py
index c53340591bd0f0f02fcc9db3142b74197aff551b..54c07a7a11a23e82717a30e4ac8a50502bfc7b51 100644
--- a/ipalib/plugins/realmdomains.py
+++ b/ipalib/plugins/realmdomains.py
@@ -185,7 +185,7 @@ class realmdomains_mod(LDAPUpdate):
             if d == api.env.domain:
                 continue
             try:
-                api.Command['dnsrecord_add'](
+                self.api.Command['dnsrecord_add'](
                     unicode(d),
                     u'_kerberos',
                     txtrecord=api.env.realm
@@ -200,7 +200,7 @@ class realmdomains_mod(LDAPUpdate):
             if d == api.env.domain:
                 continue
             try:
-                api.Command['dnsrecord_del'](
+                self.api.Command['dnsrecord_del'](
                     unicode(d),
                     u'_kerberos',
                     txtrecord=api.env.realm
-- 
2.4.3