mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-30 11:24:50 +00:00
ipaservice: Avoid clearing auth-ind when it is empty.
When `auth-ind` was empty, and it was set to be cleared, it might have triggered an uncessary change. This change add a test so that `auth-ind` is set only if needed.
This commit is contained in:
@@ -561,6 +561,15 @@ def main():
|
|||||||
if remove in args:
|
if remove in args:
|
||||||
del args[remove]
|
del args[remove]
|
||||||
|
|
||||||
|
if (
|
||||||
|
"krbprincipalauthind" in args
|
||||||
|
and (
|
||||||
|
args.get("krbprincipalauthind", [""]) ==
|
||||||
|
res_find.get("krbprincipalauthind", [""])
|
||||||
|
)
|
||||||
|
):
|
||||||
|
del args["krbprincipalauthind"]
|
||||||
|
|
||||||
if not compare_args_ipa(ansible_module, args,
|
if not compare_args_ipa(ansible_module, args,
|
||||||
res_find):
|
res_find):
|
||||||
commands.append([name, "service_mod", args])
|
commands.append([name, "service_mod", args])
|
||||||
|
|||||||
Reference in New Issue
Block a user