mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
preserve 'changed' attributes in daisychain logic
This commit is contained in:
parent
d72c0c8898
commit
6fb74ae2f9
1 changed files with 2 additions and 0 deletions
|
@ -622,7 +622,9 @@ class Runner(object):
|
|||
chained = True
|
||||
self.module_name = result.result['daisychain']
|
||||
result2 = self._executor_internal_inner(host, inject, port)
|
||||
changed = result.result.get('changed',False) or result2.result.get('changed',False)
|
||||
result.result.update(result2.result)
|
||||
result.result['changed'] = changed
|
||||
del result.result['daisychain']
|
||||
|
||||
self._delete_remote_files(conn, tmp)
|
||||
|
|
Loading…
Reference in a new issue