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
325025a5
Commit
325025a5
authored
Nov 09, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1574 from dhozac/ssh-moar-data
Make sure we get all data
parents
09cde86e
e97a2260
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
lib/ansible/runner/connection_plugins/ssh.py
+8
-2
No files found.
lib/ansible/runner/connection_plugins/ssh.py
View file @
325025a5
...
@@ -102,10 +102,16 @@ class Connection(object):
...
@@ -102,10 +102,16 @@ class Connection(object):
# We can't use p.communicate here because the ControlMaster may have stdout open as well
# We can't use p.communicate here because the ControlMaster may have stdout open as well
stdout
=
''
stdout
=
''
while
p
.
poll
()
is
Non
e
:
while
Tru
e
:
rfd
,
wfd
,
efd
=
select
.
select
([
p
.
stdout
],
[],
[
p
.
stdout
],
1
)
rfd
,
wfd
,
efd
=
select
.
select
([
p
.
stdout
],
[],
[
p
.
stdout
],
1
)
if
p
.
stdout
in
rfd
:
if
p
.
stdout
in
rfd
:
stdout
+=
os
.
read
(
p
.
stdout
.
fileno
(),
1024
)
dat
=
os
.
read
(
p
.
stdout
.
fileno
(),
9000
)
stdout
+=
dat
if
dat
==
''
:
p
.
wait
()
break
elif
p
.
poll
()
is
not
None
:
break
p
.
stdin
.
close
()
# close stdin after we read from stdout (see also issue #848)
p
.
stdin
.
close
()
# close stdin after we read from stdout (see also issue #848)
if
p
.
returncode
!=
0
and
stdout
.
find
(
'Bad configuration option: ControlPersist'
)
!=
-
1
:
if
p
.
returncode
!=
0
and
stdout
.
find
(
'Bad configuration option: ControlPersist'
)
!=
-
1
:
...
...
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