mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Small change for FreeIPA < 4.0 compatibility.
This commit is contained in:
parent
1e7f7bfc12
commit
a3b35ed1a6
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue