Fix detecting Ubuntu

This commit is contained in:
Carsten Grohmann 2021-10-23 20:43:12 +02:00
parent 6d13cf0446
commit f95899d7d5

View File

@ -1107,7 +1107,7 @@ class OOMAnalyser:
dist = 'RHEL 5/CentOS 5'
elif 'ARCH' in kernel_version:
dist = 'Arch Linux'
elif '_generic' in kernel_version:
elif '-generic' in kernel_version:
dist = 'Ubuntu'
self.oom_result.details['dist'] = dist