diff options
author | Alexander Bokovoy <abokovoy@redhat.com> | 2011-10-11 12:07:23 +0300 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-10-10 16:35:17 -0400 |
commit | ff3d3c0ab376ead2d48513c18cdd82c86ccf1382 (patch) | |
tree | 83a583400376020f272397e9c6c70fb78dbdd713 /ipapython/config.py | |
parent | 070bc7f725dc33e61bf421b9973292721ae6fbfa (diff) | |
download | freeipa-ff3d3c0ab376ead2d48513c18cdd82c86ccf1382.tar.gz freeipa-ff3d3c0ab376ead2d48513c18cdd82c86ccf1382.tar.xz freeipa-ff3d3c0ab376ead2d48513c18cdd82c86ccf1382.zip |
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.
Diffstat (limited to 'ipapython/config.py')
-rw-r--r-- | ipapython/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipapython/config.py b/ipapython/config.py index 051e39f92..d4c724dc9 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) |