mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
This commit is contained in:
committed by
Ganesh Nalawade
parent
6a0e8cae10
commit
690a626d0d
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user