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
0c65aa28
Commit
0c65aa28
authored
Dec 03, 2014
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9707 from jimktrains/issue-9704-take2
Issue-9704 Better handling of missing python
parents
8a04cb60
4dfd86d8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletions
+8
-1
lib/ansible/runner/action_plugins/copy.py
+4
-0
lib/ansible/runner/action_plugins/fetch.py
+1
-1
lib/ansible/runner/action_plugins/unarchive.py
+3
-0
No files found.
lib/ansible/runner/action_plugins/copy.py
View file @
0c65aa28
...
...
@@ -192,6 +192,10 @@ class ActionModule(object):
dest_file
=
conn
.
shell
.
join_path
(
dest
,
source_rel
)
remote_checksum
=
self
.
runner
.
_remote_checksum
(
conn
,
tmp_path
,
dest_file
,
inject
)
if
remote_checksum
==
'4'
:
result
=
dict
(
msg
=
"python isn't present on the system. Unable to compute checksum"
,
failed
=
True
)
return
ReturnData
(
conn
=
conn
,
result
=
result
)
if
remote_checksum
!=
'1'
and
not
force
:
# remote_file does not exist so continue to next iteration.
continue
...
...
lib/ansible/runner/action_plugins/fetch.py
View file @
0c65aa28
...
...
@@ -129,7 +129,7 @@ class ActionModule(object):
elif
remote_checksum
==
'3'
:
result
=
dict
(
msg
=
"remote file is a directory, fetch cannot work on directories"
,
file
=
source
,
changed
=
False
)
elif
remote_checksum
==
'4'
:
result
=
dict
(
msg
=
"python isn't present on the
remote system. Unable to fetch file
"
,
file
=
source
,
changed
=
False
)
result
=
dict
(
msg
=
"python isn't present on the
system. Unable to compute checksum
"
,
file
=
source
,
changed
=
False
)
return
ReturnData
(
conn
=
conn
,
result
=
result
)
# calculate checksum for the local file
...
...
lib/ansible/runner/action_plugins/unarchive.py
View file @
0c65aa28
...
...
@@ -83,6 +83,9 @@ class ActionModule(object):
source
=
utils
.
path_dwim
(
self
.
runner
.
basedir
,
source
)
remote_checksum
=
self
.
runner
.
_remote_checksum
(
conn
,
tmp
,
dest
,
inject
)
if
remote_checksum
==
'4'
:
result
=
dict
(
failed
=
True
,
msg
=
"python isn't present on the system. Unable to compute checksum"
)
return
ReturnData
(
conn
=
conn
,
result
=
result
)
if
remote_checksum
!=
'3'
:
result
=
dict
(
failed
=
True
,
msg
=
"dest '
%
s' must be an existing dir"
%
dest
)
return
ReturnData
(
conn
=
conn
,
result
=
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