mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #23307 from jfindlay/fix_locale_gen
check for /etc/locale.gen
This commit is contained in:
commit
4ac4509c57
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