From ff3d3c0ab376ead2d48513c18cdd82c86ccf1382 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Tue, 11 Oct 2011 12:07:23 +0300 Subject: Force kerberos realm to be a string Fixes issue with Python linter on Fedora 16 where it assumes for C modules-provided objects that they are of type _Chainmap during static analysis. --- ipapython/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipapython/config.py') diff --git a/ipapython/config.py b/ipapython/config.py index 051e39f9..d4c724dc 100644 --- a/ipapython/config.py +++ b/ipapython/config.py @@ -178,7 +178,7 @@ def __discover_config(discover_server = True): if not config.default_domain: #try once with REALM -> domain - dom_name = config.default_realm.lower() + dom_name = str(config.default_realm).lower() name = "_ldap._tcp."+dom_name+"." rs = ipapython.dnsclient.query(name, ipapython.dnsclient.DNS_C_IN, ipapython.dnsclient.DNS_T_SRV) rl = len(rs) -- cgit