Merge pull request #29746 from abednarik/virtual_ret_win_path_module

modules.win_path: __virtual__ return err msg.
This commit is contained in:
Mike Place 2015-12-16 07:39:20 -07:00
commit 2e911760de

View File

@ -35,7 +35,7 @@ def __virtual__():
''' '''
if salt.utils.is_windows() and HAS_WIN32: if salt.utils.is_windows() and HAS_WIN32:
return 'win_path' return 'win_path'
return False return (False, "Module win_path: module only works on Windows systems")
def _normalize_dir(string): def _normalize_dir(string):