mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Platform module doesn't exist in 2017.7
This commit is contained in:
parent
2733c02b0a
commit
3e55d10584
1 changed files with 2 additions and 2 deletions
|
@ -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='
|
||||
|
|
Loading…
Add table
Reference in a new issue