ahilashsasidharan commented on code in PR #63994:
URL: https://github.com/apache/airflow/pull/63994#discussion_r3040536126


##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/pools.py:
##########
@@ -143,6 +144,12 @@ def patch_pool(
     update_mask: list[str] | None = Query(None),
 ) -> PoolResponse:
     """Update a Pool."""
+    if patch_body.team_name is not None and not conf.getboolean("core", 
"multi_team"):
+        raise HTTPException(
+            status.HTTP_400_BAD_REQUEST,
+            "team_name cannot be set when multi_team mode is disabled. Please 
contact your administrator.",
+        )

Review Comment:
   Done. Added constant in exceptions.py to hold the error message and use it 
in routes and tests.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to