Merge pull request #23307 from jfindlay/fix_locale_gen

check for /etc/locale.gen
This commit is contained in:
Thomas S Hatch 2015-05-04 14:56:32 -06:00
commit 4ac4509c57

View file

@ -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),