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
e54832a7
Commit
e54832a7
authored
Nov 05, 2013
by
dragon3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicate "download_s3file" execution when the destination path doesn't exist
parent
b87e0e59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
library/cloud/s3
+0
-4
No files found.
library/cloud/s3
View file @
e54832a7
...
@@ -343,10 +343,6 @@ def main():
...
@@ -343,10 +343,6 @@ def main():
else
:
else
:
module
.
fail_json
(
msg
=
"WARNING: Checksums do not match. Use overwrite parameter to force download."
,
failed
=
True
)
module
.
fail_json
(
msg
=
"WARNING: Checksums do not match. Use overwrite parameter to force download."
,
failed
=
True
)
# If destination file doesn't already exist we can go ahead and download.
if
pathrtn
is
False
:
download_s3file
(
module
,
s3
,
bucket
,
obj
,
dest
)
# Firstly, if key_matches is TRUE and overwrite is not enabled, we EXIT with a helpful message.
# Firstly, if key_matches is TRUE and overwrite is not enabled, we EXIT with a helpful message.
if
sum_matches
is
True
and
overwrite
is
False
:
if
sum_matches
is
True
and
overwrite
is
False
:
module
.
exit_json
(
msg
=
"Local and remote object are identical, ignoring. Use overwrite parameter to force."
,
changed
=
False
)
module
.
exit_json
(
msg
=
"Local and remote object are identical, ignoring. Use overwrite parameter to force."
,
changed
=
False
)
...
...
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