mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update utils paths
This commit is contained in:
parent
cffbf52c10
commit
69ac94baca
2 changed files with 3 additions and 3 deletions
|
@ -193,7 +193,7 @@ def present(name,
|
|||
return ret
|
||||
|
||||
try:
|
||||
vdata_decoded = salt.utils.to_unicode(vdata, 'utf-8')
|
||||
vdata_decoded = salt.utils.stringutils.to_unicode(vdata, 'utf-8')
|
||||
except UnicodeDecodeError:
|
||||
# vdata contains binary data that can't be decoded
|
||||
vdata_decoded = vdata
|
||||
|
|
|
@ -11,8 +11,8 @@ from tests.support.mock import (
|
|||
)
|
||||
|
||||
# Import Salt Libs
|
||||
import salt.utils.platform
|
||||
import salt.utils.win_functions as win_functions
|
||||
import salt.utils
|
||||
|
||||
|
||||
@skipIf(NO_MOCK, NO_MOCK_REASON)
|
||||
|
@ -53,7 +53,7 @@ class WinFunctionsTestCase(TestCase):
|
|||
|
||||
self.assertEqual(encoded, '^"C:\\Some Path\\With Spaces^"')
|
||||
|
||||
@skipIf(not salt.utils.is_windows(), 'WinDLL only available on Windows')
|
||||
@skipIf(not salt.utils.platform.is_windows(), 'WinDLL only available on Windows')
|
||||
def test_broadcast_setting_change(self):
|
||||
'''
|
||||
Test to rehash the Environment variables
|
||||
|
|
Loading…
Add table
Reference in a new issue