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
0b4ad274
Commit
0b4ad274
authored
Mar 01, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase error handling in the unlikely case of failing to establish a connection.
parent
4132f895
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
AUTHORS.TXT
+1
-1
lib/ansible/runner/connection_plugins/paramiko_ssh.py
+4
-4
No files found.
AUTHORS.TXT
View file @
0b4ad274
...
...
@@ -27,6 +27,7 @@ Chris Hoffman <christopher.hoffman@gmail.com>
fdavis <reddot357@hotmail.com>
Jeroen Hoekx <jeroen@hoekx.be>
Timothy Appnel <tim@appnel.com>
Brian Coca <briancoca+dev@gmail.com>
Daniel Néri <dne@mayonnaise.net>
Dietmar Schinnerl <SleeplessAnnoyedNerd+github@gmail.com>
Nikhil Singh <nix85@ymail.com>
...
...
@@ -42,7 +43,6 @@ Yeukhon Wong <yeukhon@acm.org>
Yves Dorfsman <yves@zioup.com>
lwade <lestertron@gmail.com>
Anastasis Andronidis <anastasis90@yahoo.gr>
Brian Coca <briancoca+dev@gmail.com>
Dag Wieërs <dag@wieers.com>
Ludovic Claude <ludovic.claude@lbpoker.com>
Shaun Zinck <shaun.zinck@gmail.com>
...
...
lib/ansible/runner/connection_plugins/paramiko_ssh.py
View file @
0b4ad274
...
...
@@ -156,8 +156,8 @@ class Connection(object):
raise
errors
.
AnsibleFileNotFound
(
"file or module does not exist:
%
s"
%
in_path
)
try
:
self
.
sftp
=
self
.
ssh
.
open_sftp
()
except
:
raise
errors
.
AnsibleError
(
"failed to open a SFTP connection
"
)
except
Exception
,
e
:
raise
errors
.
AnsibleError
(
"failed to open a SFTP connection
(
%
s)"
%
e
)
try
:
self
.
sftp
.
put
(
in_path
,
out_path
)
except
IOError
:
...
...
@@ -176,8 +176,8 @@ class Connection(object):
vvv
(
"FETCH
%
s TO
%
s"
%
(
in_path
,
out_path
),
host
=
self
.
host
)
try
:
self
.
sftp
=
self
.
_connect_sftp
()
except
:
raise
errors
.
AnsibleError
(
"failed to open a SFTP connection
"
)
except
Exception
,
e
:
raise
errors
.
AnsibleError
(
"failed to open a SFTP connection
(
%
s)"
,
e
)
try
:
self
.
sftp
.
get
(
in_path
,
out_path
)
except
IOError
:
...
...
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