mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-26 02:48:12 +08:00
Provide a hook into the AWS Secret Manager for the flask secret key (#1398)
Also, the secret manager required a region name, so there was some refactoring around how regions are handled. Fixes #1239
This commit is contained in:
@@ -214,7 +214,8 @@ class MatrixDataType(Enum):
|
||||
class MatrixDataLoader(object):
|
||||
def __init__(self, location, matrix_data_type=None, app_config=None):
|
||||
""" location can be a string or DataLocator """
|
||||
self.location = DataLocator(location, app_config)
|
||||
region_name = None if app_config is None else app_config.data_locator__s3__region_name
|
||||
self.location = DataLocator(location, region_name=region_name)
|
||||
if not self.location.exists():
|
||||
raise DatasetAccessError("Dataset does not exist.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user