Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
NotChristianGarcia committed Nov 22, 2024
1 parent b9ef140 commit 5ca3ddb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/api_pods_podid_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ async def pod_auth(pod_id_net, request: Request):

# Get info for clients
# The goal is: https://tacc.develop.tapis.io/v3/pods/{{pod_id}}/auth
pod_id, tapis_domain = net_info.get('url').split('.pods.') ## Should return `mypod` & `tacc.tapis.io` with proper tenant and schmu
pod_id, tapis_domain = net_info.url.split('.pods.') ## Should return `mypod` & `tacc.tapis.io` with proper tenant and schmu
tapis_tenant = tapis_domain.split('.')[0]
if not net_info.get('tapis_auth', False):
return JSONResponse(content = f"This pod does not have tapis_auth configured in networking for this pod_id_net: {pod_id_net}. Leave or remedy.", status_code = 403)
Expand Down Expand Up @@ -451,7 +451,7 @@ def callback(pod_id_net, request: Request):
if not net_info:
raise Exception(f"Pod {pod_id} does not have networking key that matches pod_id_net: {pod_id_net}")

pod_id, tapis_domain = net_info.get('url').split('.pods.') ## Should return `mypod` & `tacc.tapis.io` with proper tenant and schmu
pod_id, tapis_domain = net_info.url.split('.pods.') ## Should return `mypod` & `tacc.tapis.io` with proper tenant and schmu
tapis_tenant = tapis_domain.split('.')[0]
if not net_info.get('tapis_auth', False):
return JSONResponse(content = f"This pod does not have tapis_auth configured in networking for this pod_id_net: {pod_id_net}. Leave or remedy.", status_code = 403)
Expand Down

0 comments on commit 5ca3ddb

Please sign in to comment.