Closed ghost closed 5 years ago
Instead of maintaining custom code for this, would you consider using the distro module?
Fedora:
>>> import distro
>>> distro.id()
'fedora'
>>> distro.version()
'29'
RHEL:
>>> import distro
>>> distro.id()
u'rhel'
>>> distro.version()
u'7.6'
Bump version to 2.1.19 (not final PR to this version) Added support to detect RHEL 7.6+ CentOS 7.6+ and Fedora 29+ as they now only have NetworkManager