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
ac44c36e
Commit
ac44c36e
authored
Aug 11, 2012
by
Dietmar Schinnerl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unnecessary string replacements since parse_json already filters garbage lines
parent
6b622beb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
5 deletions
+1
-5
lib/ansible/runner/connection/ssh.py
+1
-5
No files found.
lib/ansible/runner/connection/ssh.py
View file @
ac44c36e
...
...
@@ -60,7 +60,7 @@ class SSHConnection(object):
ssh_cmd
=
[
"ssh"
,
"-tt"
,
"-q"
]
+
self
.
common_args
+
[
self
.
host
]
if
self
.
runner
.
sudo
and
sudoable
:
# Rather than detect if sudo wants a password this time, -k makes
# sudo always ask for a password if one is required.
# sudo always ask for a password if one is required.
# Passing a quoted compound command to sudo (or sudo -s)
# directly doesn't work, so we shellquote it with pipes.quote()
# and pass the quoted string to the user's shell. We loop reading
...
...
@@ -104,10 +104,6 @@ class SSHConnection(object):
if
p
.
stdout
in
rfd
:
stdout
+=
os
.
read
(
p
.
stdout
.
fileno
(),
1024
)
p
.
stdin
.
close
()
# close stdin after we read from stdout (see also issue #848)
# older versions of ssh generate this error which we ignore
stdout
=
stdout
.
replace
(
"tcgetattr: Invalid argument
\n
"
,
""
)
# suppress Ubuntu 10.04/12.04 error on -tt option
stdout
=
stdout
.
replace
(
"tcgetattr: Inappropriate ioctl for device
\n
"
,
""
)
if
p
.
returncode
!=
0
and
stdout
.
find
(
'Bad configuration option: ControlPersist'
)
!=
-
1
:
raise
errors
.
AnsibleError
(
'using -c ssh on certain older ssh versions may not support ControlPersist, set ANSIBLE_SSH_ARGS="" before running again'
)
...
...
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