Merge pull request #30741 from jfindlay/locale_state

states.locale.__virtual__: return exec mod load err
This commit is contained in:
Mike Place 2016-01-29 17:00:41 -06:00
commit 1f5f41cc07

View File

@ -23,7 +23,10 @@ def __virtual__():
'''
Only load if the locale module is available in __salt__
'''
return 'locale.get_locale' in __salt__
if 'locale.get_locale' in __salt__:
return True
else:
return (False, __salt__.missing_fun_string('locale.get_locale'))
def system(name):