diff --git a/service/api_pods_podid_func.py b/service/api_pods_podid_func.py index ba67b10..0dc6bd4 100644 --- a/service/api_pods_podid_func.py +++ b/service/api_pods_podid_func.py @@ -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) @@ -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)