Merge pull request #25309 from davidjb/patch-3

Format /etc/locale.gen correctly in salt.modules.localemod.gen_locale
This commit is contained in:
Justin Findlay 2015-07-10 08:24:08 -06:00
commit 7376ef426d

View file

@ -234,7 +234,7 @@ def gen_locale(locale, **kwargs):
__salt__['file.replace'](
'/etc/locale.gen',
r'^\s*#\s*{0}\s*$'.format(locale),
'{0}'.format(locale),
'{0}\\n'.format(locale),
append_if_not_found=True
)
elif on_ubuntu: