Skip to content

Commit

Permalink
Used .env variables for sfapi client id and private key in bl7012 Con…
Browse files Browse the repository at this point in the history
…fig7012 class
  • Loading branch information
rajasriramoju committed Apr 16, 2024
1 parent 2fd7fcd commit 914ceee
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions orchestration/flows/bl7012/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,19 @@
from orchestration import globus
from ptycho_nersc import NerscPtychoClient

import os

class Config7012:
def __init__(
self,
path_client_id,
path_priv_key,
) -> None:
config = globus.get_config()
self.endpoints = globus.build_endpoints(config)
self.apps = globus.build_apps(config)
self.tc: TransferClient = globus.init_transfer_client(self.apps["als_transfer"])
self.nersc = NerscPtychoClient(
path_client_id,
path_priv_key,
os.getenv("PATH_NERSC_ID"),
os.getenv("PATH_NERSC_PRI_KEY"),
)
self.nersc7012 = self.endpoints["nersc7012"]
self.data7012 = self.endpoints["data7012"]

0 comments on commit 914ceee

Please sign in to comment.