mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fix is_windows checks
This commit is contained in:
parent
74b197f643
commit
a7ee07ab81
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user