Small change for FreeIPA < 4.0 compatibility.

pull/10658/head
Erinn Looney-Triggs 10 years ago
parent 1e7f7bfc12
commit a3b35ed1a6

@ -13,6 +13,10 @@ def initialize():
api.bootstrap(context='cli') api.bootstrap(context='cli')
api.finalize() api.finalize()
try:
api.Backend.rpcclient.connect()
except AttributeError:
#FreeIPA < 4.0 compatibility
api.Backend.xmlclient.connect() api.Backend.xmlclient.connect()
return api return api

Loading…
Cancel
Save