mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update old utils paths to new utils paths
This commit is contained in:
parent
e312efb5e7
commit
d0278345fc
3 changed files with 4 additions and 4 deletions
|
@ -373,7 +373,7 @@ def render_jinja_tmpl(tmplstr, context, tmplpath=None):
|
|||
continue
|
||||
|
||||
try:
|
||||
decoded_context[key] = salt.utils.to_unicode(value, encoding=SLS_ENCODING)
|
||||
decoded_context[key] = salt.utils.stringutils.to_unicode(value, encoding=SLS_ENCODING)
|
||||
except UnicodeDecodeError as ex:
|
||||
log.debug(
|
||||
"Failed to decode using default encoding (%s), trying system encoding",
|
||||
|
|
|
@ -23,7 +23,7 @@ from salt.ext import six
|
|||
|
||||
|
||||
@destructiveTest
|
||||
@skipIf(salt.utils.is_windows(), 'minion is windows')
|
||||
@skipIf(salt.utils.platform.is_windows(), 'minion is windows')
|
||||
class PkgrepoTest(ModuleCase, SaltReturnAssertsMixin):
|
||||
'''
|
||||
pkgrepo state tests
|
||||
|
|
|
@ -86,7 +86,7 @@ class LocalCacheCleanOldJobsTestCase(TestCase, LoaderModuleMockMixin):
|
|||
# Sleep on Windows because time.time is only precise to 3 decimal
|
||||
# points, and therefore subtracting the jid_ctime from time.time
|
||||
# will result in a negative number
|
||||
if salt.utils.is_windows():
|
||||
if salt.utils.platform.is_windows():
|
||||
time.sleep(0.25)
|
||||
local_cache.clean_old_jobs()
|
||||
|
||||
|
@ -158,7 +158,7 @@ class LocalCacheCleanOldJobsTestCase(TestCase, LoaderModuleMockMixin):
|
|||
# Sleep on Windows because time.time is only precise to 3 decimal
|
||||
# points, and therefore subtracting the jid_ctime from time.time
|
||||
# will result in a negative number
|
||||
if salt.utils.is_windows():
|
||||
if salt.utils.platform.is_windows():
|
||||
time.sleep(0.25)
|
||||
local_cache.clean_old_jobs()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue