Commit a3b35ed1 by Erinn Looney-Triggs

Small change for FreeIPA < 4.0 compatibility.

parent 1e7f7bfc
......@@ -13,7 +13,11 @@ def initialize():
api.bootstrap(context='cli')
api.finalize()
api.Backend.xmlclient.connect()
try:
api.Backend.rpcclient.connect()
except AttributeError:
#FreeIPA < 4.0 compatibility
api.Backend.xmlclient.connect()
return api
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment