From 7fc336f15f647f5f9e1b1fa03cf97b943903a2e7 Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Tue, 22 Oct 2019 10:46:50 +0200 Subject: [PATCH] Storage/S3: Support 'on' for bool options --- storage_s3/indico_storage_s3/storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage_s3/indico_storage_s3/storage.py b/storage_s3/indico_storage_s3/storage.py index b8eda17..b7d3d89 100644 --- a/storage_s3/indico_storage_s3/storage.py +++ b/storage_s3/indico_storage_s3/storage.py @@ -59,8 +59,8 @@ class S3StorageBase(Storage): if 'addressing_style' in data: self.client_kwargs['config'] = Config(s3={'addressing_style': data['addressing_style']}) self.bucket_policy_file = data.get('bucket_policy_file') - self.bucket_versioning = data.get('bucket_versioning') in ('1', 'true', 'yes') - if data.get('proxy') in ('1', 'true', 'yes'): + self.bucket_versioning = data.get('bucket_versioning') in ('1', 'true', 'yes', 'on') + if data.get('proxy') in ('1', 'true', 'yes', 'on'): self.proxy_downloads = ProxyDownloadsMode.local elif data.get('proxy') in ('xaccelredirect', 'nginx'): self.proxy_downloads = ProxyDownloadsMode.nginx