Gate the win_function a little better

This commit is contained in:
twangboy 2018-10-04 10:02:59 -06:00
parent bcdb3667ae
commit 01bd847bcd
No known key found for this signature in database
GPG Key ID: 93FF3BDEB278C9EB

View File

@ -64,9 +64,10 @@ class WinFileCheckPermsTestCase(TestCase, LoaderModuleMockMixin):
Test cases for the check_perms function in salt.modules.win_file
'''
temp_file = ''
current_user = salt.utils.win_functions.get_current_user(False)
current_user = ''
def setup_loader_modules(self):
self.current_user = salt.utils.win_functions.get_current_user(False)
return {
win_file: {
'__opts__': {