fix: return result of batch execution

This commit is contained in:
Mauro Torrez 2020-10-05 13:31:48 -03:00
parent 6a5b430597
commit 936faac069

View File

@ -90,11 +90,11 @@ class ActionModule(ActionBase):
result = merge_hash(result, dict(changed=True))
if not dry_run:
self.execute_command(
result = merge_hash(result, self.execute_command(
'{} --output-json'.format(cli_command),
stdin=batch_script,
check_mode_unsafe=True
)
))
return result