Merge pull request #28105 from jfindlay/locale_msg

add reason for not loading localemod
This commit is contained in:
Mike Place 2015-10-20 06:25:40 -06:00
commit 69ab1d30e2

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__