Skip to content
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

about function '_execute_module' code wrong? #11065

Closed
ozhiwei opened this issue May 26, 2015 · 2 comments
Closed

about function '_execute_module' code wrong? #11065

ozhiwei opened this issue May 26, 2015 · 2 comments
Labels
bug This issue/PR relates to a bug.

Comments

@ozhiwei
Copy link

ozhiwei commented May 26, 2015

look code.

lib/ansible/runner/init.py:1280

basefile = 'ansible-tmp-%s-%s' % (time.time(), random.randint(0, 2**48))

lib/ansible/runner/init.py:535

if "tmp" in tmp and not C.DEFAULT_KEEP_REMOTE_FILES and not persist_files and delete_remote_tmp:

the "tmp" in tmp expression is always True

@bcoca
Copy link
Member

bcoca commented May 26, 2015

i'm not sure if this is a bug or a code question. IIRC the tmp variable is by default set to ~/.ansible/tmp and configurable by the user, I believe this check just makes sure that this or the optional /tmp is being used and avoids deleting files if for some reason the user is pointing at a non temporary directory.

@jimi-c
Copy link
Member

jimi-c commented Jul 13, 2015

@uhe1231 this is not an issue, but more of a question. If you are still curious in regards to this code, please redirect it to the ansible-devel mailing list.

Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular issue is resolved.

Thank you!

@jimi-c jimi-c closed this as completed Jul 13, 2015
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 6, 2018
@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants