Merge pull request #49446 from rallytime/bp-49356

Back-port #49356 to 2018.3.3
This commit is contained in:
Nicole Thomas 2018-08-30 14:04:00 -04:00 committed by GitHub
commit d6ddcab351
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: