Fix locale generation on Ubuntu

This commit is contained in:
Captain Inspiration 2016-02-12 14:25:01 +01:00 committed by rallytime
parent 7f49fbb70d
commit 27776b5f4e

View file

@ -242,7 +242,7 @@ def gen_locale(locale, **kwargs):
locale_info = salt.utils.locales.split_locale(locale)
# if the charmap has not been supplied, normalize by appening it
if not locale_info['charmap']:
if not locale_info['charmap'] and not on_ubuntu:
locale_info['charmap'] = locale_info['codeset']
locale = salt.utils.locales.join_locale(locale_info)