diff --git a/ckanext/archiver/tasks.py b/ckanext/archiver/tasks.py index a6e78d4..591b422 100644 --- a/ckanext/archiver/tasks.py +++ b/ckanext/archiver/tasks.py @@ -557,7 +557,7 @@ def archive_resource(context, resource, log, result=None, url_timeout=30): """ storage_path = config.get('ckan.storage_path', - '/var/lib/ckan/default/resources') + '/var/lib/ckan/default/resources') path_to_json = config.get( 'ckanext.cloudstorage.google_service_account_json') bucket_name = config.get('ckanext.cloudstorage.container_name') @@ -595,7 +595,7 @@ def archive_resource(context, resource, log, result=None, url_timeout=30): s3_file_path = s3_file_path.replace(storage_path, "archiver") blob = bucket.blob(s3_file_path) blob.upload_from_filename(saved_file) - + # delete the file from archive storage if os.path.isfile(saved_file): os.remove(saved_file)