Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ansible/shell_plugins/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def join_path(self, *args):
## We observe the interactions between ShellModule and ActionModule, and
## find the temporary directories Ansible created on remote machine. So we
## collect them and copied to docker container in build_module_command
if len(args) >= 2 and args[0].startswith('/home/') and args[1] == '':
if len(args) >= 2 and (args[0].startswith('/home/') or args[0].startswith('/root/')) and args[1] == '':
self.dtemps.append(args[0])

return super(ShellModule, self).join_path(*args)
Expand Down