-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor fix in do_get_s3_archive (#49)
Fixed a potential bug in do_get_s3_archive and added Prefix when calling s3.list_objects_v2
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deee239
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fix has introduced another bug. When s3 dumped with explicit table name, dump name is dump.zip and it cannot be restored, because it looking for dump/tablename.zip and filename variable remains None.
deee239
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, i am facing the same issue. Its unable to restore from S3 bucket.
deee239
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it working by making changes at line 191:
if d["Key"] == "{}.{}".format(args.dumpPath, archive_type):