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
ed2e6fc8
Commit
ed2e6fc8
authored
Apr 27, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore python3 fixups
parent
80078292
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
5 deletions
+19
-5
v2/ansible/plugins/connections/accelerate.py
+4
-1
v2/ansible/plugins/connections/chroot.py
+2
-0
v2/ansible/plugins/connections/funcd.py
+2
-0
v2/ansible/plugins/connections/jail.py
+2
-0
v2/ansible/plugins/connections/libvirt_lxc.py
+2
-0
v2/ansible/plugins/connections/ssh.py
+1
-1
v2/ansible/plugins/connections/winrm.py
+4
-3
v2/ansible/plugins/connections/zone.py
+2
-0
No files found.
v2/ansible/plugins/connections/accelerate.py
View file @
ed2e6fc8
...
...
@@ -15,6 +15,9 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
import
json
import
os
import
base64
...
...
@@ -141,7 +144,7 @@ class Connection(object):
# shutdown, so we'll reconnect.
wrong_user
=
True
except
AnsibleError
,
e
:
except
AnsibleError
as
e
:
if
allow_ssh
:
if
"WRONG_USER"
in
e
:
vvv
(
"Switching users, waiting for the daemon on
%
s to shutdown completely..."
%
self
.
host
)
...
...
v2/ansible/plugins/connections/chroot.py
View file @
ed2e6fc8
...
...
@@ -15,6 +15,8 @@
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
import
distutils.spawn
import
traceback
...
...
v2/ansible/plugins/connections/funcd.py
View file @
ed2e6fc8
...
...
@@ -21,6 +21,8 @@
# The func transport permit to use ansible over func. For people who have already setup
# func and that wish to play with ansible, this permit to move gradually to ansible
# without having to redo completely the setup of the network.
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
HAVE_FUNC
=
False
try
:
...
...
v2/ansible/plugins/connections/jail.py
View file @
ed2e6fc8
...
...
@@ -16,6 +16,8 @@
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
import
distutils.spawn
import
traceback
...
...
v2/ansible/plugins/connections/libvirt_lxc.py
View file @
ed2e6fc8
...
...
@@ -16,6 +16,8 @@
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
import
distutils.spawn
import
os
...
...
v2/ansible/plugins/connections/ssh.py
View file @
ed2e6fc8
...
...
@@ -236,7 +236,7 @@ class Connection(ConnectionBase):
continue
try
:
host_fh
=
open
(
hf
)
except
IOError
,
e
:
except
IOError
as
e
:
hfiles_not_found
+=
1
continue
else
:
...
...
v2/ansible/plugins/connections/winrm.py
View file @
ed2e6fc8
...
...
@@ -15,7 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
from
__future__
import
absolute_import
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
import
base64
import
os
...
...
@@ -103,7 +104,7 @@ class Connection(ConnectionBase):
try
:
protocol
.
send_message
(
''
)
return
protocol
except
WinRMTransportError
,
exc
:
except
WinRMTransportError
as
exc
:
err_msg
=
str
(
exc
)
if
re
.
search
(
r'Operation\s+?timed\s+?out'
,
err_msg
,
re
.
I
):
raise
AnsibleError
(
"the connection attempt timed out"
)
...
...
@@ -164,7 +165,7 @@ class Connection(ConnectionBase):
cmd_parts
=
self
.
_shell
.
_encode_script
(
script
,
as_list
=
True
)
try
:
result
=
self
.
_winrm_exec
(
cmd_parts
[
0
],
cmd_parts
[
1
:],
from_exec
=
True
)
except
Exception
,
e
:
except
Exception
as
e
:
traceback
.
print_exc
()
raise
AnsibleError
(
"failed to exec cmd
%
s"
%
cmd
)
return
(
result
.
status_code
,
''
,
result
.
std_out
.
encode
(
'utf-8'
),
result
.
std_err
.
encode
(
'utf-8'
))
...
...
v2/ansible/plugins/connections/zone.py
View file @
ed2e6fc8
...
...
@@ -17,6 +17,8 @@
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
import
distutils.spawn
import
traceback
...
...
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