Try to use platform.linux_distribution() before distro equivalent (#7403)

Try to primarily fall back to using `platform.linux_distribution()` if `/etc/os-release` isn't available. Only use `distro.linux_distribution()` on Python >= 3.8.

* Try to use platform.linux_distribution() before distro equivalent

* Fix tests for py38

* Added changelog entry
This commit is contained in:
Joona Hoikkala
2019-09-27 09:50:38 -07:00
committed by Brad Warren
parent 6c89aa5227
commit ca3077d034
3 changed files with 19 additions and 7 deletions
+1
View File
@@ -11,6 +11,7 @@ Certbot adheres to [Semantic Versioning](https://semver.org/).
### Changed
* Don't send OCSP requests for expired certificates
* Return to using platform.linux_distribution instead of distro.linux_distribution in OS fingerprinting for Python < 3.8
### Fixed