mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix is_windows checks
This commit is contained in:
parent
74b197f643
commit
a7ee07ab81
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue