Skip to content

Commit

Permalink
Merge pull request #98 from Sage-Bionetworks/etl-589
Browse files Browse the repository at this point in the history
[ETL-589] Fix parameter type in delete_objects call
  • Loading branch information
philerooski authored Dec 19, 2023
2 parents b19936b + 96c1853 commit abf9097
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/glue/jobs/json_to_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def archive_existing_datasets(
if delete_upon_completion and archived_objects:
deleted_response = s3_client.delete_objects(
Bucket=bucket,
Delete={"Objects": {"Key": obj["Key"] for obj in archived_objects}}
Delete=[obj["Key"] for obj in archived_objects]
)
return archived_objects

Expand Down
2 changes: 1 addition & 1 deletion tests/test_json_to_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ def test_archive_existing_datasets_delete(
)
mock_client.delete_objects.assert_called_once_with(
Bucket=artifact_bucket,
Delete={"Objects": {"Key": obj["Key"] for obj in archived_objects}}
Delete=[obj["Key"] for obj in archived_objects]
)

def test_drop_deleted_healthkit_data(
Expand Down

0 comments on commit abf9097

Please sign in to comment.