add reason for not loading localemod

Fixes #28080.
This commit is contained in:
Justin Findlay 2015-10-19 11:57:58 -06:00
parent 07cac0b434
commit 1e75665a9a

View File

@ -32,9 +32,9 @@ def __virtual__():
Only work on POSIX-like systems
'''
if HAS_DBUS is False and _uses_dbus():
return False
return (False, 'Cannot load locale module: dbus python module unavailable')
if salt.utils.is_windows():
return False
return (False, 'Cannot load locale module: windows platforms are unsupported')
return __virtualname__