-
Notifications
You must be signed in to change notification settings - Fork 344
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
FileExistsError on rc.prepare() #407
Comments
If you can make a PR for that we can get it merged in and close this out. Add an info or debug logger statement to note the skip. |
sure, gonna do it! |
Circling back to this, the only way I could see hitting this situation is if you passed ssh key data into Runner as well as having the file on the filesystem. Is that what you were doing here? |
Yes, actually because on the first run of it the runner creates a file with the ssh key on the filesystem |
and I actually forgot about it, sorry for that. I'll make this week |
It may be possible to ignore the error in this particular case... But I'm wondering if this is just one more consequence of #493. I guess there's no way to avoid writing this file, so the same solution wouldn't be possible, so I guess it is a different issue. |
when ansible_runner.run() is called it initiates a Runner instance, and on the prepare() method it creates a couple of files on the private dir, the thing is: when the ssh private key fille already exists it raises an uncaught exception
Testing locally I simply added:
and solved the issue.
The text was updated successfully, but these errors were encountered: