Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
e357ecbd
Commit
e357ecbd
authored
Dec 12, 2013
by
jctanner
Committed by
James Tanner
Dec 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge pull request #5254 from j2sol/fix-ssh-missing-quotes
Make sure ssh pipes are empty before moving on
parent
06e52f34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lib/ansible/runner/connection_plugins/ssh.py
+6
-2
No files found.
lib/ansible/runner/connection_plugins/ssh.py
View file @
e357ecbd
...
...
@@ -237,9 +237,13 @@ class Connection(object):
stderr
+=
dat
if
dat
==
''
:
rpipes
.
remove
(
p
.
stderr
)
if
not
rpipes
or
p
.
poll
()
is
not
None
:
p
.
wait
()
# only break out if we've emptied the pipes, or there is nothing to
# read from and the process has finished.
if
(
not
rpipes
or
not
rfd
)
and
p
.
poll
()
is
not
None
:
break
# Calling wait while there are still pipes to read can cause a lock
elif
not
rpipes
and
p
.
poll
()
==
None
:
p
.
wait
()
stdin
.
close
()
# close stdin after we read from stdout (see also issue #848)
if
C
.
HOST_KEY_CHECKING
and
not_in_host_file
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment