mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Fix tests that use timed_subprocess for py3
This commit is contained in:
parent
2d8055e151
commit
6ffeaae19b
@ -40,7 +40,7 @@ class TimedProc(object):
|
||||
|
||||
if self.timeout and not isinstance(self.timeout, (int, float)):
|
||||
raise salt.exceptions.TimedProcTimeoutError('Error: timeout {0} must be a number'.format(self.timeout))
|
||||
if kwargs.get('shell', False):
|
||||
if six.PY2 and kwargs.get('shell', False):
|
||||
args = salt.utils.stringutils.to_bytes(args)
|
||||
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user