Fix error when using with TurboGears

This commit is contained in:
rcritten@redhat.com 2007-09-25 08:36:23 -04:00
parent 2807525128
commit fddae7a8a2

View File

@ -124,9 +124,10 @@ class IPAServer:
that and None for proxy dn to make calling getConn() easier.
"""
debug = opts.get('ipadebug')
debug = "Off"
if opts:
if opts is not None:
debug = opts.get('ipadebug')
if opts.get('krbccache'):
self.set_krbccache(opts['krbccache'])
self.set_principal(None)