From 18cff0f4544074c4348f24044c9e5677cddaf3bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Jochum?= Date: Thu, 9 Jul 2015 13:41:46 +0200 Subject: [PATCH] Simple fix for locale.present on Ubuntu. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: René Jochum --- salt/modules/localemod.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/salt/modules/localemod.py b/salt/modules/localemod.py index 5e664683bb..7a533c9387 100644 --- a/salt/modules/localemod.py +++ b/salt/modules/localemod.py @@ -252,8 +252,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']),