Simple fix for locale.present on Ubuntu.

Signed-off-by: René Jochum <rene@jochums.at>
This commit is contained in:
René Jochum 2015-07-09 13:41:46 +02:00 committed by rallytime
parent 2f0f59b6cb
commit 20032c55f3

View file

@ -304,8 +304,7 @@ def gen_locale(locale, **kwargs):
cmd = ['locale-gen']
if on_gentoo:
cmd.append('--generate')
if not on_ubuntu:
cmd.append(locale)
cmd.append(locale)
elif salt.utils.which("localedef") is not None:
cmd = ['localedef', '--force',
'-i', "{0}_{1}".format(locale_info['language'], locale_info['territory']),