mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #23397 from jfindlay/fix_locale_gen
add more flexible whitespace to locale_gen search
This commit is contained in:
commit
aa5fb0aa46
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user