[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Freeipa-devel] [PATCH] 0067 Fix dns_is_enabled command



Stupid typos broke it.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York
>From 52f887b2203baa649b9c259df7f902ebd2ecbbde Mon Sep 17 00:00:00 2001
From: Simo Sorce <ssorce redhat com>
Date: Thu, 20 Jan 2011 15:42:50 -0500
Subject: [PATCH] Fix dns_is_enabled command

---
 ipalib/plugins/dns.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py
index e1d9ce66876b62fce1dc8e6a9ab92d3d219c311a..6d2109741b92da70e3075b1c353d5a5084c02b56 100644
--- a/ipalib/plugins/dns.py
+++ b/ipalib/plugins/dns.py
@@ -624,7 +624,7 @@ class dns_is_enabled(Command):
     INTERNAL = True
     has_output = output.standard_value
 
-    base_dn = 'cn=master,cn=ipa,cn=etc,%s' % api.env.basedn
+    base_dn = 'cn=masters,cn=ipa,cn=etc,%s' % api.env.basedn
     filter = '(&(objectClass=ipaConfigObject)(cn=DNS))'
 
     def execute(self, *args, **options):
@@ -632,8 +632,8 @@ class dns_is_enabled(Command):
         dns_enabled = False
 
         try:
-            ent = ldap.find_entries(filter=filter, base_dn=base_dn)
-            if len(e):
+            ent = ldap.find_entries(filter=self.filter, base_dn=self.base_dn)
+            if len(ent):
                 dns_enabled = True
         except Exception, e:
             pass
-- 
1.7.3.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]