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
5c504210
Commit
5c504210
authored
Dec 12, 2013
by
jctanner
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5254 from j2sol/fix-ssh-missing-quotes
Make sure ssh pipes are empty before moving on
parents
929f8a5c
8cef210a
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 @
5c504210
...
@@ -237,9 +237,13 @@ class Connection(object):
...
@@ -237,9 +237,13 @@ class Connection(object):
stderr
+=
dat
stderr
+=
dat
if
dat
==
''
:
if
dat
==
''
:
rpipes
.
remove
(
p
.
stderr
)
rpipes
.
remove
(
p
.
stderr
)
if
not
rpipes
or
p
.
poll
()
is
not
None
:
# only break out if we've emptied the pipes, or there is nothing to
p
.
wait
()
# read from and the process has finished.
if
(
not
rpipes
or
not
rfd
)
and
p
.
poll
()
is
not
None
:
break
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)
stdin
.
close
()
# close stdin after we read from stdout (see also issue #848)
if
C
.
HOST_KEY_CHECKING
and
not_in_host_file
:
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