mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
remove trailing spaces
This commit is contained in:
parent
c1c1266cc3
commit
e154c7b16f
1 changed files with 2 additions and 2 deletions
|
@ -35,12 +35,12 @@ def _parse_localectl():
|
|||
Get the 'System Locale' parameters from localectl
|
||||
'''
|
||||
ret = {}
|
||||
|
||||
|
||||
bus = dbus.SystemBus()
|
||||
localed = bus.get_object('org.freedesktop.locale1',
|
||||
'/org/freedesktop/locale1')
|
||||
properties = dbus.Interface(localed, 'org.freedesktop.DBus.Properties')
|
||||
system_locale = properties.Get('org.freedesktop.locale1', 'Locale')
|
||||
system_locale = properties.Get('org.freedesktop.locale1', 'Locale')
|
||||
|
||||
try:
|
||||
key, val = re.match('^([A-Z_]+)=(.*)$', system_locale[0]).groups()
|
||||
|
|
Loading…
Add table
Reference in a new issue