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
632a83c7
Commit
632a83c7
authored
Jul 23, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused function
parent
479f8b8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
lib/ansible/runner/__init__.py
+0
-17
No files found.
lib/ansible/runner/__init__.py
View file @
632a83c7
...
...
@@ -14,9 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
################################################
import
multiprocessing
import
signal
...
...
@@ -183,15 +180,6 @@ class Runner(object):
# *****************************************************
#def _transfer_module(self, conn, tmp, module, inject):
# ''' transfers a module file to the remote side to execute it, but does not execute it yet '''
#
# outpath = self._copy_module(conn, tmp, module, inject)
# self._low_level_exec_command(conn, "chmod +x %s" % outpath, tmp)
# return outpath
# *****************************************************
def
_transfer_str
(
self
,
conn
,
tmp
,
name
,
data
):
''' transfer string to remote file '''
...
...
@@ -269,17 +257,13 @@ class Runner(object):
def
_execute_async_module
(
self
,
conn
,
tmp
,
module_name
,
inject
=
None
):
''' transfer the given module name, plus the async module, then run it '''
# shell and command module are the same
module_args
=
self
.
module_args
if
module_name
==
'shell'
:
module_name
=
'command'
module_args
+=
" #USE_SHELL"
# should drop module in same directory
(
module_path
,
is_new_style
)
=
self
.
_copy_module
(
conn
,
tmp
,
module_name
,
inject
)
self
.
_low_level_exec_command
(
conn
,
"chmod +x
%
s"
%
module_path
,
tmp
)
return
self
.
_execute_module
(
conn
,
tmp
,
'async_wrapper'
,
module_args
,
...
...
@@ -609,7 +593,6 @@ class Runner(object):
self
.
callbacks
.
on_failed
(
result
.
host
,
data
)
else
:
self
.
callbacks
.
on_ok
(
result
.
host
,
data
)
return
result
# *****************************************************
...
...
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