Fix a glitch with daisy chain logic

This commit is contained in:
Michael DeHaan 2012-07-23 21:01:35 -04:00
parent 183330a9fa
commit 9b8793e42e

View file

@ -439,8 +439,8 @@ class Runner(object):
xfered = self._transfer_str(conn, tmp, 'source', resultant)
# run the copy module, queue the file module
args = "src=%s dest=%s" % (xfered, dest)
return self._execute_module(conn, tmp, 'copy', args, inject=inject).daisychain('file')
self.module_args = "src=%s dest=%s" % (xfered, dest)
return self._execute_module(conn, tmp, 'copy', self.module_args, inject=inject).daisychain('file')
# *****************************************************
@ -592,7 +592,7 @@ class Runner(object):
result.result['changed'] = changed
del result.result['daisychain']
self._delete_remote_files(conn, tmp)
#self._delete_remote_files(conn, tmp)
conn.close()
if not result.comm_ok: