From 6fb74ae2f9e437ea898b4345b5e70a524e0b3a7c Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 20 Jul 2012 09:13:10 -0400 Subject: [PATCH] preserve 'changed' attributes in daisychain logic --- lib/ansible/runner/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index d52515afdf..ce10edbb66 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -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)