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
a2b2e549
Commit
a2b2e549
authored
Dec 03, 2014
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix checksum code to work with delegate_to/local_action
Fixes #9704
parent
0c65aa28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
lib/ansible/runner/__init__.py
+4
-1
No files found.
lib/ansible/runner/__init__.py
View file @
a2b2e549
...
@@ -1223,7 +1223,10 @@ class Runner(object):
...
@@ -1223,7 +1223,10 @@ class Runner(object):
def
_remote_checksum
(
self
,
conn
,
tmp
,
path
,
inject
):
def
_remote_checksum
(
self
,
conn
,
tmp
,
path
,
inject
):
''' takes a remote checksum and returns 1 if no file '''
''' takes a remote checksum and returns 1 if no file '''
python_interp
=
inject
[
'hostvars'
][
inject
[
'inventory_hostname'
]]
.
get
(
'ansible_python_interpreter'
,
'python'
)
if
'delegate_to'
in
inject
and
inject
[
'delegate_to'
]:
python_interp
=
inject
[
'hostvars'
][
inject
[
'delegate_to'
]]
.
get
(
'ansible_python_interpreter'
,
'python'
)
else
:
python_interp
=
inject
[
'hostvars'
][
inject
[
'inventory_hostname'
]]
.
get
(
'ansible_python_interpreter'
,
'python'
)
cmd
=
conn
.
shell
.
checksum
(
path
,
python_interp
)
cmd
=
conn
.
shell
.
checksum
(
path
,
python_interp
)
data
=
self
.
_low_level_exec_command
(
conn
,
cmd
,
tmp
,
sudoable
=
True
)
data
=
self
.
_low_level_exec_command
(
conn
,
cmd
,
tmp
,
sudoable
=
True
)
data2
=
utils
.
last_non_blank_line
(
data
[
'stdout'
])
data2
=
utils
.
last_non_blank_line
(
data
[
'stdout'
])
...
...
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