Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Yang committed Jan 16, 2024
1 parent 37e2125 commit f9552c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion jupyter-extension/jupyterlab_pachyderm/env.py
Expand Up @@ -5,7 +5,8 @@
PACH_CONFIG = os.environ.get("PACH_CONFIG", Path.home() / ".pachyderm/config.json")
PFS_MOUNT_DIR = os.environ.get("PFS_MOUNT_DIR", "/pfs")
PACHD_ADDRESS = os.environ.get("PACHD_ADDRESS", None)
DEX_TOKEN = os.environ.get("DEX_TOKEN", None) # If specified, this is the ID_TOKEN used in auth
# If specified, this is the ID_TOKEN used in auth
DEX_TOKEN = os.environ.get("DEX_TOKEN", None)

PACHYDERM_EXT_DEBUG = strtobool(os.environ.get("PACHYDERM_EXT_DEBUG", "False").lower())
if PACHYDERM_EXT_DEBUG:
Expand Down
8 changes: 4 additions & 4 deletions jupyter-extension/jupyterlab_pachyderm/handlers.py
Expand Up @@ -332,9 +332,7 @@ async def put(self):
address = body["pachd_address"]
cas = bytes(body["server_cas"], "utf-8") if "server_cas" in body else None

client = Client().from_pachd_address(
pachd_address=address, root_certs=cas
)
client = Client().from_pachd_address(pachd_address=address, root_certs=cas)
self.settings["pachyderm_client"] = client
self.settings["pfs_contents_manager"] = PFSManager(client=client)
self.settings["datum_contents_manager"] = DatumManager(client=client)
Expand Down Expand Up @@ -462,7 +460,9 @@ def setup_handlers(web_app):
if PACHD_ADDRESS:
client = Client().from_pachd_address(pachd_address=PACHD_ADDRESS)
if DEX_TOKEN:
client.auth_token = client.auth.authenticate(id_token=DEX_TOKEN).pach_token
client.auth_token = client.auth.authenticate(
id_token=DEX_TOKEN
).pach_token
else:
client = Client()
get_logger().debug(
Expand Down

0 comments on commit f9552c5

Please sign in to comment.