diff --git a/gateway/core.py b/gateway/core.py index 8d029bd..0ddafdc 100644 --- a/gateway/core.py +++ b/gateway/core.py @@ -225,7 +225,7 @@ async def inner(request: Request, response: Response, **kwargs): response.status_code = status_code_from_service - if post_processing_func: + if post_processing_func: # all used pp functions found in post_processing f = getattr(post_processing, post_processing_func) resp_data = f(resp_data) diff --git a/gateway/models/k8s.py b/gateway/models/podorc.py similarity index 100% rename from gateway/models/k8s.py rename to gateway/models/podorc.py diff --git a/gateway/routers/hub.py b/gateway/routers/hub.py index 0cf98c7..bfc4c93 100644 --- a/gateway/routers/hub.py +++ b/gateway/routers/hub.py @@ -12,7 +12,7 @@ from gateway.core import route from gateway.models.hub import Project, AllProjects, ApprovalStatus, AnalysisOrProjectNode, ListAnalysisOrProjectNodes, \ AnalysisNode -from gateway.models.k8s import ImageDataResponse, ContainerResponse +from gateway.models.podorc import ImageDataResponse, ContainerResponse hub_router = APIRouter( dependencies=[Security(verify_idp_token), Depends(add_hub_jwt), Security(idp_oauth2_scheme_pass),