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
cd3edeed
Commit
cd3edeed
authored
Feb 28, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6224 from gildegoma/runner-connection-cleanup
Fully delete 'ssh_old' and 'paramiko_alt' options
parents
b2c8b8ba
04f63671
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/ansible/runner/__init__.py
+3
-3
No files found.
lib/ansible/runner/__init__.py
View file @
cd3edeed
...
...
@@ -548,7 +548,7 @@ class Runner(object):
host_variables
=
self
.
inventory
.
get_variables
(
host
,
vault_password
=
self
.
vault_pass
)
host_connection
=
host_variables
.
get
(
'ansible_connection'
,
self
.
transport
)
if
host_connection
in
[
'paramiko'
,
'
paramiko_alt'
,
'ssh'
,
'ssh_old
'
,
'accelerate'
]:
if
host_connection
in
[
'paramiko'
,
'
ssh
'
,
'accelerate'
]:
port
=
host_variables
.
get
(
'ansible_ssh_port'
,
self
.
remote_port
)
if
port
is
None
:
port
=
C
.
DEFAULT_REMOTE_PORT
...
...
@@ -742,7 +742,7 @@ class Runner(object):
if
not
self
.
accelerate_port
:
self
.
accelerate_port
=
C
.
ACCELERATE_PORT
if
actual_transport
in
[
'paramiko'
,
'
paramiko_alt'
,
'ssh'
,
'ssh_old
'
,
'accelerate'
]:
if
actual_transport
in
[
'paramiko'
,
'
ssh
'
,
'accelerate'
]:
actual_port
=
inject
.
get
(
'ansible_ssh_port'
,
port
)
# the delegated host may have different SSH port configured, etc
...
...
@@ -1007,7 +1007,7 @@ class Runner(object):
if
result
[
'rc'
]
!=
0
:
if
result
[
'rc'
]
==
5
:
output
=
'Authentication failure.'
elif
result
[
'rc'
]
==
255
and
self
.
transport
in
[
'ssh'
,
'ssh_old'
]:
elif
result
[
'rc'
]
==
255
and
self
.
transport
in
[
'ssh'
]:
if
utils
.
VERBOSITY
>
3
:
output
=
'SSH encountered an unknown error. The output was:
\n
%
s'
%
(
result
[
'stdout'
]
+
result
[
'stderr'
])
else
:
...
...
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