mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
This commit is contained in:
parent
6a0e8cae10
commit
690a626d0d
1 changed files with 1 additions and 0 deletions
|
@ -133,6 +133,7 @@ def load_config(module, commands):
|
|||
continue
|
||||
rc, out, err = exec_command(module, command)
|
||||
if rc != 0:
|
||||
exec_command(module, 'end')
|
||||
module.fail_json(msg=to_text(err, errors='surrogate_then_replace'), command=command, rc=rc)
|
||||
|
||||
exec_command(module, 'end')
|
||||
|
|
Loading…
Reference in a new issue