mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-08-01 04:14:42 +00:00
user: Fix no modifications to be performed error
The no_members parameter is added to args for the api command. But no_members is never part of res_find from user-show, therefore this parameter needs to be ignored in compare_args_ipa. This is needed to prevent an error in the idempotency test where a user is ensured again with the same settings.
This commit is contained in:
@@ -1115,8 +1115,13 @@ def main():
|
|||||||
# For all settings is args, check if there are
|
# For all settings is args, check if there are
|
||||||
# different settings in the find result.
|
# different settings in the find result.
|
||||||
# If yes: modify
|
# If yes: modify
|
||||||
if not compare_args_ipa(ansible_module, args,
|
# The nomembers parameter is added to args for the
|
||||||
res_find):
|
# api command. But no_members is never part of
|
||||||
|
# res_find from user-show, therefore this parameter
|
||||||
|
# needs to be ignored in compare_args_ipa.
|
||||||
|
if not compare_args_ipa(
|
||||||
|
ansible_module, args, res_find,
|
||||||
|
ignore=["no_members"]):
|
||||||
commands.append([name, "user_mod", args])
|
commands.append([name, "user_mod", args])
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user