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:
Thomas Woerner
2019-10-21 12:02:14 +02:00
parent 8932842288
commit 1428143d73

View File

@@ -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