diff --git a/ckanext/archiver/tasks.py b/ckanext/archiver/tasks.py index 591b422..e598218 100644 --- a/ckanext/archiver/tasks.py +++ b/ckanext/archiver/tasks.py @@ -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: