parse_lsb_release: Fix vendor name matching for CentOS.

This commit is contained in:
rht 2019-01-04 20:24:40 +00:00 committed by Tim Abbott
parent f5c1a69737
commit 105732ab1f
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ def parse_lsb_release():
with open('/etc/redhat-release', 'r') as fp:
info = fp.read().strip().split(' ')
vendor = info[0]
if vendor == 'Centos':
if vendor == 'CentOS':
# E.g. "CentOS Linux release 7.5.1804 (Core)"
codename = vendor.lower() + info[3][0]
elif vendor == 'Fedora':