config: Detect OpenSUSE via distro.id()

distro.id() reports OpenSUSE differently than platform.get_distro_id().
Account for this.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka 2017-06-26 16:07:54 +02:00 committed by Daniel Wagner
parent 8bb7257ecc
commit 9a300046e6

View File

@ -79,7 +79,7 @@ class Config:
started by kas.
"""
distro_id = get_distro_id()
if distro_id in ['fedora', 'SuSE']:
if distro_id in ['fedora', 'SuSE', 'opensuse']:
self.environ = {'LC_ALL': 'en_US.utf8',
'LANG': 'en_US.utf8',
'LANGUAGE': 'en_US'}