Skip to content

Commit

Permalink
Archive to S3 condition fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blagojabozinovski committed May 13, 2024
1 parent 3ebbd2e commit 75cd56d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/archiver/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def archive_resource(context, resource, log, result=None, url_timeout=30):
# move the temp file to the resource's archival directory
saved_file = os.path.join(archive_dir, file_name)

if archive_to_s3:
if archive_to_s3 is True:
shutil.move(result['saved_file'], saved_file)
log.info('Going to do chmod: %s', saved_file)
try:
Expand Down

0 comments on commit 75cd56d

Please sign in to comment.