mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-31 20:04:45 +00:00
ansible_freeipa_module: New function api_get_realm
The function api_get_realm is returning the realm of a connected FreeIPA api. This is needed for proper principal checks in the extended ipauser module that supports principals now.
This commit is contained in:
@@ -211,3 +211,7 @@ def _afm_convert(value):
|
|||||||
|
|
||||||
def module_params_get(module, name):
|
def module_params_get(module, name):
|
||||||
return _afm_convert(module.params.get(name))
|
return _afm_convert(module.params.get(name))
|
||||||
|
|
||||||
|
|
||||||
|
def api_get_realm():
|
||||||
|
return api.env.realm
|
||||||
|
|||||||
Reference in New Issue
Block a user