mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Small change for FreeIPA < 4.0 compatibility.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user