mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-25 00:44:42 +00:00
Merge pull request #1248 from t-woerner/fix_batch_errors
ansible_freeipa_module: Fix errors in batch mode
This commit is contained in:
@@ -1485,7 +1485,6 @@ class IPAAnsibleModule(AnsibleModule):
|
|||||||
filter(lambda x: x[0] in keeponly,
|
filter(lambda x: x[0] in keeponly,
|
||||||
_res.items())
|
_res.items())
|
||||||
)
|
)
|
||||||
self.tm_warn("res: %s" % repr(res))
|
|
||||||
|
|
||||||
if "error" not in res or res["error"] is None:
|
if "error" not in res or res["error"] is None:
|
||||||
if result_handler is not None:
|
if result_handler is not None:
|
||||||
@@ -1498,10 +1497,9 @@ class IPAAnsibleModule(AnsibleModule):
|
|||||||
changed = True
|
changed = True
|
||||||
else:
|
else:
|
||||||
_errors.append(
|
_errors.append(
|
||||||
"%s %s %s: %s" %
|
"%s: %s: %s" %
|
||||||
(batch_args[ri]["method"],
|
(batch_args[ri]["method"],
|
||||||
repr(batch_args[ri]["params"][0][0]),
|
str(batch_args[ri]["params"][0][0]),
|
||||||
repr(batch_args[ri]["params"][1]),
|
|
||||||
res["error"]))
|
res["error"]))
|
||||||
# clear batch command list (python2 compatible)
|
# clear batch command list (python2 compatible)
|
||||||
del batch_args[:]
|
del batch_args[:]
|
||||||
|
|||||||
Reference in New Issue
Block a user