Skip to content
Merged
Changes from 1 commit
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[1] == '':
Copy link
Copy Markdown
Contributor

@qiluo-msft qiluo-msft Feb 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it true that you customize the home directory on 'some systems'? If yes, instead of removing the condition, could you find the accurate "home" directory and keep the condition?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm trying to deploy on the system with only root user. The "home" directory for root user is "/root/" so this condition always fails. I'll update this pull request today to keep condition for root user too.

self.dtemps.append(args[0])

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