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:
parent
8bb7257ecc
commit
9a300046e6
@ -79,7 +79,7 @@ class Config:
|
|||||||
started by kas.
|
started by kas.
|
||||||
"""
|
"""
|
||||||
distro_id = get_distro_id()
|
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',
|
self.environ = {'LC_ALL': 'en_US.utf8',
|
||||||
'LANG': 'en_US.utf8',
|
'LANG': 'en_US.utf8',
|
||||||
'LANGUAGE': 'en_US'}
|
'LANGUAGE': 'en_US'}
|
||||||
|
Loading…
Reference in New Issue
Block a user