mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix typo in checking select results
It's possible for more than one fd to be set, so 'elif' is obviously not the right thing to use.
This commit is contained in:
parent
1164e83477
commit
9700d9c04f
1 changed files with 2 additions and 2 deletions
|
@ -460,14 +460,14 @@ class Connection(ConnectionBase):
|
|||
# Read whatever output is available on stdout and stderr, and stop
|
||||
# listening to the pipe if it's been closed.
|
||||
|
||||
elif p.stdout in rfd:
|
||||
if p.stdout in rfd:
|
||||
chunk = p.stdout.read()
|
||||
if chunk == '':
|
||||
rpipes.remove(p.stdout)
|
||||
tmp_stdout += chunk
|
||||
#self._display.debug("stdout chunk (state=%s):\n>>>%s<<<\n" % (state, chunk))
|
||||
|
||||
elif p.stderr in rfd:
|
||||
if p.stderr in rfd:
|
||||
chunk = p.stderr.read()
|
||||
if chunk == '':
|
||||
rpipes.remove(p.stderr)
|
||||
|
|
Loading…
Reference in a new issue