Commit
WALE_S3_STORAGE_CLASS, defaulting to STANDARD. valid values: STANDARD | REDUCED_REDUNDANCY | GLACIER | STANDARD_IA | ONEZONE_IA | INTELLIGENT_TIERING | DEEP_ARCHIVE
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,8 @@ def uri_put_file(creds, uri, fp, content_type=None, conn=None): | |
if content_type is not None: | ||
k.content_type = content_type | ||
|
||
k.set_contents_from_file(fp, encrypt_key=True) | ||
storage_class = os.getenv('WALE_S3_STORAGE_CLASS', 'STANDARD') | ||
k.set_contents_from_file(fp, encrypt_key=True, headers=storage_class) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
fdr
Member
|
||
return k | ||
|
||
|
||
|
This is broken.
set_contents_from_file
takesheaders
as an object.storage_class
is a string. Becauseencrypt_key
is specified, this always results in an error, but the error gets supressed. I suspect #416 and #415 may be related to this.