New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mkdtemp calls do not use expanduser to expand ~ paths #20886
Comments
BTW, on the broken system, after the run, I see a
|
this should already have been fixed by #20486 |
@bcoca thanks - is there a document for testing with master on my system, or does downloading the git repo and doing a |
that will work, but instead of installing try downloading and using |
@bcoca It has been broken again when fixing #20706 @phobologic You can also use |
Thanks - for now we've worked around it (by configuring, through environment variables, a good remote temp), but I'll try to find some time to dig back into it. |
This was fixed by adding a call to _remote_expand_user in before calling mkdtemp in #20486, it temporarily regressed when the function was updated, but that was also fixed. As such i'm going to close this issue, feel free to reopen or ping us if you find it not to be the case. |
ISSUE TYPE
COMPONENT NAME
plugins.shell.ShellBase.mkdtemp
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 14.04
This is a local run of ansible.
SUMMARY
In 2.2.1.0, #18551 broke the use of
plugins.shell.ShellBase.mkdtemp
since it doesn't useos.path.expanduser
on the path when no system path is being used (ie: it uses~/
as the base of the path) when creating the directory, but not when files are being put into that temporary directory - so it creates the tempdir in/etc/ansible/~
, but when it goes to put the files there it expands it to$HOME/
correctly.STEPS TO REPRODUCE
In 2.2.0.0, with verbose output turned on, the initial call of the
setup
module results in this output:On 2.2.1.0 the output instead ends up being:
EXPECTED RESULTS
The path should be expanded to
$HOME
effectively.ACTUAL RESULTS
See STEPS TO REPRODUCE.
The text was updated successfully, but these errors were encountered: