mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
c399b8f568
commit
101199ac14
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ def gen_locale(locale):
|
|||
log.error('The provided locale "{0}" is not found in {1}'.format(locale, search))
|
||||
return False
|
||||
|
||||
if on_debian or on_gentoo:
|
||||
if os.path.exists('/etc/locale.gen'):
|
||||
__salt__['file.replace'](
|
||||
'/etc/locale.gen',
|
||||
r'^#\s*{0}$'.format(locale),
|
||||
|
|
Loading…
Add table
Reference in a new issue