mirror of
https://github.com/fastogt/pyfastogt
synced 2025-03-09 23:38:55 +00:00
update system_info.py add LINUXMINT to distro list
This commit is contained in:
parent
b839ec087a
commit
982267515d
1 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ def linux_get_dist():
|
||||||
"""
|
"""
|
||||||
Return the running distribution group
|
Return the running distribution group
|
||||||
RHEL: RHEL, CENTOS, FEDORA
|
RHEL: RHEL, CENTOS, FEDORA
|
||||||
DEBIAN: UBUNTU, DEBIAN
|
DEBIAN: UBUNTU, DEBIAN, LINUXMINT
|
||||||
"""
|
"""
|
||||||
linux_tuple = platform.linux_distribution()
|
linux_tuple = platform.linux_distribution()
|
||||||
dist_name = linux_tuple[0]
|
dist_name = linux_tuple[0]
|
||||||
|
@ -88,7 +88,7 @@ def linux_get_dist():
|
||||||
|
|
||||||
if dist_name_upper in ["RHEL", "CENTOS LINUX", "FEDORA"]:
|
if dist_name_upper in ["RHEL", "CENTOS LINUX", "FEDORA"]:
|
||||||
return "RHEL"
|
return "RHEL"
|
||||||
elif dist_name_upper in ["DEBIAN", "UBUNTU"]:
|
elif dist_name_upper in ["DEBIAN", "UBUNTU", "LINUXMINT"]:
|
||||||
return "DEBIAN"
|
return "DEBIAN"
|
||||||
raise NotImplemented("Unknown platform '%s'" % dist_name)
|
raise NotImplemented("Unknown platform '%s'" % dist_name)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue