mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
code formatting
This commit is contained in:
parent
e58d222fb0
commit
aefd0fb374
@ -260,10 +260,12 @@ def gen_locale(locale, **kwargs):
|
|||||||
|
|
||||||
if on_debian or on_gentoo: # file-based search
|
if on_debian or on_gentoo: # file-based search
|
||||||
path = '/usr/share/i18n/SUPPORTED'
|
path = '/usr/share/i18n/SUPPORTED'
|
||||||
|
|
||||||
def search_locale():
|
def search_locale():
|
||||||
return __salt__['file.search'](path,
|
return __salt__['file.search'](path,
|
||||||
'^{0}$'.format(locale),
|
'^{0}$'.format(locale),
|
||||||
flags=re.MULTILINE)
|
flags=re.MULTILINE)
|
||||||
|
|
||||||
valid = search_locale()
|
valid = search_locale()
|
||||||
if not valid and not locale_info['charmap']:
|
if not valid and not locale_info['charmap']:
|
||||||
# charmap was not supplied, so try copying the codeset
|
# charmap was not supplied, so try copying the codeset
|
||||||
|
Loading…
Reference in New Issue
Block a user