Platform module doesn't exist in 2017.7

This commit is contained in:
Daniel A Wozniak 2018-08-27 03:45:55 +00:00 committed by Daniel A. Wozniak
parent 2733c02b0a
commit 3e55d10584
No known key found for this signature in database
GPG key ID: 166B9D2C06C82D61

View file

@ -238,13 +238,13 @@ class ShellTestCase(TestCase, AdaptedConfigurationTestCaseMixin):
Execute a script with the given argument string
'''
import salt.utils.platform
import salt.utils
script_path = self.get_script_path(script)
if not os.path.isfile(script_path):
return False
if salt.utils.platform.is_windows():
if salt.utils.is_windows():
cmd = 'python '
else:
cmd = 'PYTHONPATH='