Skip to content

Commit

Permalink
Properly namespace check_perms
Browse files Browse the repository at this point in the history
  • Loading branch information
UtahDave authored and basepi committed May 17, 2013
1 parent d0f50c3 commit 0d52de7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions salt/modules/win_file.py
Expand Up @@ -24,6 +24,7 @@

# Import salt libs
import salt.utils
from salt.utils import namespaced_function
from salt.modules.file import (check_hash, check_managed, check_perms, # pylint: disable=W0611
directory_exists, get_managed, mkdir, makedirs, makedirs_perms,
patch, remove, source_list, sed_contains, touch, append, contains,
Expand All @@ -42,6 +43,8 @@ def __virtual__():
'''
if salt.utils.is_windows():
if HAS_WINDOWS_MODULES:
global check_perms
check_perms = namespaced_function(check_perms, globals())
return 'file'
log.warn(salt.utils.required_modules_error(__file__, __doc__))
return False
Expand Down

0 comments on commit 0d52de7

Please sign in to comment.