mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-06 04:26:57 +00:00
Validate dag_id argument (#4593)
This commit is contained in:
parent
f3c107025a
commit
4ec9f3e117
@ -219,6 +219,12 @@ class REST_API(AppBuilderBaseView):
|
||||
"""
|
||||
dag_id: str = self.get_request_arg(request, "dag_id")
|
||||
|
||||
if not dag_id:
|
||||
return ApiResponse.error(
|
||||
status=ApiResponse.STATUS_BAD_REQUEST,
|
||||
error=f"Missing dag_id argument in the request",
|
||||
)
|
||||
|
||||
try:
|
||||
return status(dag_id)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user