Skip to content

Commit

Permalink
Merge pull request #1248 from t-woerner/fix_batch_errors
Browse files Browse the repository at this point in the history
ansible_freeipa_module: Fix errors in batch mode
  • Loading branch information
rjeffman authored Jun 28, 2024
2 parents 1dba4ba + 39ba225 commit 6d5f3f3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plugins/module_utils/ansible_freeipa_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,6 @@ def exception_handler(module, ex, exit_args, one_name):
filter(lambda x: x[0] in keeponly,
_res.items())
)
self.tm_warn("res: %s" % repr(res))

if "error" not in res or res["error"] is None:
if result_handler is not None:
Expand All @@ -1498,10 +1497,9 @@ def exception_handler(module, ex, exit_args, one_name):
changed = True
else:
_errors.append(
"%s %s %s: %s" %
"%s: %s: %s" %
(batch_args[ri]["method"],
repr(batch_args[ri]["params"][0][0]),
repr(batch_args[ri]["params"][1]),
str(batch_args[ri]["params"][0][0]),
res["error"]))
# clear batch command list (python2 compatible)
del batch_args[:]
Expand Down

0 comments on commit 6d5f3f3

Please sign in to comment.