Skip to content

Commit

Permalink
new: del temp file after upload to s3
Browse files Browse the repository at this point in the history
  • Loading branch information
nickumia-reisys committed Jul 26, 2023
1 parent 5f00bf9 commit ad41b6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckanext/geodatagov/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ def upload_to_key(upload_str: str, filename_on_s3: str) -> None:
else:
log.error(f"File {filename_on_s3} upload failed. Error: {resp_metadata}")

del temp_file


def upload_sitemap_file(sitemap: list) -> None:
"""Handles uploading sitemap files to s3"""
Expand Down

0 comments on commit ad41b6e

Please sign in to comment.