Merge pull request #23397 from jfindlay/fix_locale_gen

add more flexible whitespace to locale_gen search
This commit is contained in:
Thomas S Hatch 2015-05-05 21:44:10 -06:00
commit aa5fb0aa46

View File

@ -264,7 +264,7 @@ def gen_locale(locale):
if os.path.exists('/etc/locale.gen'):
__salt__['file.replace'](
'/etc/locale.gen',
r'^#\s*{0}$'.format(locale),
r'^\s*#\s*{0}\s*$'.format(locale),
'{0}'.format(locale),
append_if_not_found=True
)