diff --git a/salt/modules/localemod.py b/salt/modules/localemod.py index caa8956d4e..4211980ef5 100644 --- a/salt/modules/localemod.py +++ b/salt/modules/localemod.py @@ -274,4 +274,4 @@ def gen_locale(locale): cmd.append('--generate') cmd.append(locale) - return __salt__['cmd.retcode'](cmd, python_shell=False) + return __salt__['cmd.retcode'](cmd, python_shell=False) == 0