mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix invalid src option return response for network config modules (#56076)
* Add changed key in faliure case to maintain backward compatibility
This commit is contained in:
parent
fa5a94aa71
commit
1a66121f03
1 changed files with 4 additions and 1 deletions
|
@ -40,7 +40,10 @@ class ActionModule(_ActionModule):
|
|||
def run(self, task_vars=None):
|
||||
config_module = hasattr(self, '_config_module') and self._config_module
|
||||
if config_module and self._task.args.get('src'):
|
||||
self._handle_src_option()
|
||||
try:
|
||||
self._handle_src_option()
|
||||
except AnsibleError as e:
|
||||
return {'failed': True, 'msg': e.message, 'changed': False}
|
||||
|
||||
result = super(ActionModule, self).run(task_vars=task_vars)
|
||||
|
||||
|
|
Loading…
Reference in a new issue