From 51f32c8fc9fa035ec764d5d3251310362b98d0bc Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Tue, 10 Feb 2015 09:48:46 -0500 Subject: [PATCH] Actually use reduced redundancy only when specified. --- lib/galaxy/objectstore/s3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/objectstore/s3.py b/lib/galaxy/objectstore/s3.py index a6b97ab4668..df34c828e87 100644 --- a/lib/galaxy/objectstore/s3.py +++ b/lib/galaxy/objectstore/s3.py @@ -13,7 +13,7 @@ import time from datetime import datetime from galaxy.exceptions import ObjectNotFound -from galaxy.util import umask_fix_perms +from galaxy.util import umask_fix_perms, string_as_bool from galaxy.util.directory_hash import directory_hash_id from galaxy.util.sleeper import Sleeper from .s3_multipart_upload import multipart_upload @@ -76,7 +76,7 @@ class S3ObjectStore(ObjectStore): self.secret_key = a_xml.get('secret_key') b_xml = config_xml.findall('bucket')[0] self.bucket = b_xml.get('name') - self.use_rr = b_xml.get('use_reduced_redundancy', False) + self.use_rr = string_as_bool(b_xml.get('use_reduced_redundancy', "False")) cn_xml = config_xml.findall('connection') if not cn_xml: cn_xml = {}