diff --git a/fence/blueprints/data/indexd.py b/fence/blueprints/data/indexd.py index fec8e913d..52e867573 100644 --- a/fence/blueprints/data/indexd.py +++ b/fence/blueprints/data/indexd.py @@ -641,7 +641,7 @@ def get_signed_url( # only attempt to get the region when we're not specifying an # s3-compatible endpoint URL (ex: no need for region when using cleversafe) region = None - if not current_bucket.get("endpoint_url"): + if not bucket.get("endpoint_url"): region = self.get_bucket_region() if not region: region = flask.current_app.boto.get_bucket_region(