Skip to content
Snippets Groups Projects
Commit 1428143d authored by Thomas Woerner's avatar Thomas Woerner
Browse files

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.
parent 89328422
Branches
Tags
No related merge requests found
......@@ -211,3 +211,7 @@ def _afm_convert(value):
def module_params_get(module, name):
return _afm_convert(module.params.get(name))
def api_get_realm():
return api.env.realm
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment