2e9388
From c466f49b39869ec9817cda4a0485b00a14c52782 Mon Sep 17 00:00:00 2001
2e9388
From: Martin Basti <mbasti@redhat.com>
2e9388
Date: Wed, 25 Nov 2015 09:57:07 +0100
2e9388
Subject: [PATCH] Fix upgrade of forwardzones when zone is in realmdomains
2e9388
2e9388
https://fedorahosted.org/freeipa/ticket/5472
2e9388
2e9388
Reviewed-By: Petr Spacek <pspacek@redhat.com>
2e9388
---
2e9388
 ipalib/plugins/realmdomains.py | 4 ++--
2e9388
 1 file changed, 2 insertions(+), 2 deletions(-)
2e9388
2e9388
diff --git a/ipalib/plugins/realmdomains.py b/ipalib/plugins/realmdomains.py
2e9388
index c53340591bd0f0f02fcc9db3142b74197aff551b..54c07a7a11a23e82717a30e4ac8a50502bfc7b51 100644
2e9388
--- a/ipalib/plugins/realmdomains.py
2e9388
+++ b/ipalib/plugins/realmdomains.py
2e9388
@@ -185,7 +185,7 @@ class realmdomains_mod(LDAPUpdate):
2e9388
             if d == api.env.domain:
2e9388
                 continue
2e9388
             try:
2e9388
-                api.Command['dnsrecord_add'](
2e9388
+                self.api.Command['dnsrecord_add'](
2e9388
                     unicode(d),
2e9388
                     u'_kerberos',
2e9388
                     txtrecord=api.env.realm
2e9388
@@ -200,7 +200,7 @@ class realmdomains_mod(LDAPUpdate):
2e9388
             if d == api.env.domain:
2e9388
                 continue
2e9388
             try:
2e9388
-                api.Command['dnsrecord_del'](
2e9388
+                self.api.Command['dnsrecord_del'](
2e9388
                     unicode(d),
2e9388
                     u'_kerberos',
2e9388
                     txtrecord=api.env.realm
2e9388
-- 
2e9388
2.4.3
2e9388