Fix is_windows checks

This commit is contained in:
Daniel A. Wozniak 2018-08-17 13:48:31 -07:00
parent 74b197f643
commit a7ee07ab81
No known key found for this signature in database
GPG Key ID: 166B9D2C06C82D61

View File

@ -767,7 +767,7 @@ class TestFileState(TestCase, LoaderModuleMockMixin):
name = '/etc/testdir'
user = 'salt'
group = 'saltstack'
if salt.utils.is_windows():
if salt.utils.platform.is_windows():
name = name.replace('/', '\\')
ret = {'name': name,
@ -922,7 +922,7 @@ class TestFileState(TestCase, LoaderModuleMockMixin):
source = 'salt://code/flask'
user = 'salt'
group = 'saltstack'
if salt.utils.is_windows():
if salt.utils.platform.is_windows():
name = name.replace('/', '\\')
ret = {'name': name,