Skip to content

Commit

Permalink
Update conditional for archiving
Browse files Browse the repository at this point in the history
  • Loading branch information
alexobaseki committed Jun 11, 2024
1 parent ff27999 commit e8558a1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,11 @@ def process_import_function(event, context):
}
]
)

if file_archiving_enabled:
# Possible that these values are strings instead of booleans
if (
file_archiving_enabled
and isinstance(file_archiving_enabled, bool)
) or file_archiving_enabled == "True":
archive_files(bucket, file_paths)

# delete object from original bucket
Expand Down

0 comments on commit e8558a1

Please sign in to comment.