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
fe923b93
Commit
fe923b93
authored
Aug 16, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adaptation of fix in #891 to avoid cut on only one md5 call.
parent
5bb5082e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
lib/ansible/runner/__init__.py
+12
-1
No files found.
lib/ansible/runner/__init__.py
View file @
fe923b93
...
...
@@ -540,6 +540,10 @@ class Runner(object):
def
_executor_internal_inner
(
self
,
host
,
inject
,
port
,
is_chained
=
False
):
''' decides how to invoke a module '''
# FIXME: temporary, need to refactor to pass as parameters versus reassigning
prev_module_name
=
self
.
module_name
prev_module_args
=
self
.
module_args
# special non-user/non-fact variables:
# 'groups' variable is a list of host name in each group
# 'hostvars' variable contains variables for each host name
...
...
@@ -594,6 +598,11 @@ class Runner(object):
if
'daisychain_args'
in
result
.
result
:
self
.
module_args
=
result
.
result
[
'daisychain_args'
]
result2
=
self
.
_executor_internal_inner
(
host
,
inject
,
port
,
is_chained
=
True
)
# FIXME: remove this hack
self
.
module_name
=
prev_module_name
self
.
module_args
=
prev_module_args
result2
.
result
[
'module'
]
=
self
.
module_name
changed
=
False
if
result
.
result
.
get
(
'changed'
,
False
)
or
result2
.
result
.
get
(
'changed'
,
False
):
...
...
@@ -665,7 +674,9 @@ class Runner(object):
cmd
=
" || "
.
join
(
md5s
)
cmd
=
"
%
s;
%
s || (echo
\"
${rc}
%
s
\"
)"
%
(
test
,
cmd
,
path
)
return
utils
.
last_non_blank_line
(
self
.
_low_level_exec_command
(
conn
,
cmd
,
tmp
,
sudoable
=
False
))
data
=
self
.
_low_level_exec_command
(
conn
,
cmd
,
tmp
,
sudoable
=
False
)
data
=
utils
.
last_non_blank_line
(
data
)
return
data
.
split
()[
0
]
# *****************************************************
...
...
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