Skip to content
Snippets Groups Projects
Commit 7e826fce authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman
Browse files

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.
parent debdef19
No related branches found
No related tags found
No related merge requests found
...@@ -561,6 +561,15 @@ def main(): ...@@ -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])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment