mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #30741 from jfindlay/locale_state
states.locale.__virtual__: return exec mod load err
This commit is contained in:
commit
1f5f41cc07
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user