mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
code formatting
This commit is contained in:
parent
e58d222fb0
commit
aefd0fb374
1 changed files with 2 additions and 0 deletions
|
@ -260,10 +260,12 @@ def gen_locale(locale, **kwargs):
|
|||
|
||||
if on_debian or on_gentoo: # file-based search
|
||||
path = '/usr/share/i18n/SUPPORTED'
|
||||
|
||||
def search_locale():
|
||||
return __salt__['file.search'](path,
|
||||
'^{0}$'.format(locale),
|
||||
flags=re.MULTILINE)
|
||||
|
||||
valid = search_locale()
|
||||
if not valid and not locale_info['charmap']:
|
||||
# charmap was not supplied, so try copying the codeset
|
||||
|
|
Loading…
Add table
Reference in a new issue