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

Race condition in _parse_distro_release_file #163

Merged
merged 1 commit into from
Feb 8, 2017
Merged

Race condition in _parse_distro_release_file #163

merged 1 commit into from
Feb 8, 2017

Conversation

sethmlarson
Copy link
Contributor

Also happens to fix #162 :)
Instead of checking if the file exists just try and open it and if we can't open it (For whatever reason, if it's not there, no permissions, etc) then we return as if it wasn't there.

@nir0s
Copy link
Collaborator

nir0s commented Feb 1, 2017

LGTM. I want someone else (@andy-maier?) to look at it to verify that I'm not missing any potential breaking behavior here.

@nir0s nir0s merged commit 07fe66e into python-distro:master Feb 8, 2017
@sethmlarson sethmlarson deleted the patch-1 branch February 8, 2017 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

distro fails because it can't read /etc/image_version file
3 participants