From cbea9e980497ef69632ad683bcbe7780f50531f4 Mon Sep 17 00:00:00 2001 From: Alexander VT Date: Tue, 23 Nov 2021 11:41:37 -0600 Subject: [PATCH] fix(google): pass storage creds into sync so Google Storage backend can be updated --- fence/blueprints/login/ras.py | 3 ++- fence/resources/ga4gh/passports.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fence/blueprints/login/ras.py b/fence/blueprints/login/ras.py index cd5aa58cc..c61c3c81e 100644 --- a/fence/blueprints/login/ras.py +++ b/fence/blueprints/login/ras.py @@ -169,10 +169,11 @@ def post_login(self, user=None, token_result=None, id_from_idp=None): dbGaP = os.environ.get("dbGaP") or config.get("dbGaP") if not isinstance(dbGaP, list): dbGaP = [dbGaP] + storage_creds = config["STORAGE_CREDENTIALS"] sync = fence.scripting.fence_create.init_syncer( dbGaP, - None, + storage_creds, DB, arborist=arborist, ) diff --git a/fence/resources/ga4gh/passports.py b/fence/resources/ga4gh/passports.py index 754555af1..bba9bd532 100644 --- a/fence/resources/ga4gh/passports.py +++ b/fence/resources/ga4gh/passports.py @@ -339,8 +339,9 @@ def sync_visa_authorization(gen3_user, ga4gh_visas, expiration): from fence.settings import DB except ImportError: pass + storage_creds = config["STORAGE_CREDENTIALS"] syncer = fence.scripting.fence_create.init_syncer( - dbgap_config, None, DB, arborist=arborist_client + dbgap_config, storage_creds, DB, arborist=arborist_client ) with flask.current_app.db.session as db_session: