mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
communicate()
first returns stdout
not stderr
.
This commit is contained in:
parent
d4ac22797c
commit
5bfcbdb914
@ -211,6 +211,6 @@ class NonBlockingPopen(subprocess.Popen):
|
||||
self.stderr_buff.flush()
|
||||
self.stderr_buff.seek(0)
|
||||
if self.universal_newlines:
|
||||
return (self._translate_newlines(self.stderr_buff.read()),
|
||||
self._translate_newlines(self.stdout_buff.read()))
|
||||
return self.stderr_buff.read(), self.stdout_buff.read()
|
||||
return (self._translate_newlines(self.stdout_buff.read()),
|
||||
self._translate_newlines(self.stderr_buff.read()))
|
||||
return self.stdout_buff.read(), self.stderr_buff.read()
|
||||
|
Loading…
Reference in New Issue
Block a user