Merge pull request #548 from t-woerner/user_fix_nomembers_always_triggers_mod

user: Fix no modifications to be performed error
This commit is contained in:
Rafael Guterres Jeffman
2021-05-26 09:21:35 -03:00
committed by GitHub

View File

@@ -1111,8 +1111,13 @@ def main():
# For all settings is args, check if there are
# different settings in the find result.
# If yes: modify
if not compare_args_ipa(ansible_module, args,
res_find):
# The nomembers 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.
if not compare_args_ipa(
ansible_module, args, res_find,
ignore=["no_members"]):
commands.append([name, "user_mod", args])
else: