fix(api): config PUT response no longer double-reports worker_pages/factory_page as skipped
Browse files
server.py
CHANGED
|
@@ -1076,6 +1076,9 @@ async def api_config_put(request: Request, _admin=Depends(check_admin)):
|
|
| 1076 |
body = await request.json()
|
| 1077 |
applied, skipped = {}, {}
|
| 1078 |
for name, value in body.items():
|
|
|
|
|
|
|
|
|
|
| 1079 |
spec = CONFIG_FIELDS.get(name)
|
| 1080 |
if not spec:
|
| 1081 |
skipped[name] = "unknown field"; continue
|
|
|
|
| 1076 |
body = await request.json()
|
| 1077 |
applied, skipped = {}, {}
|
| 1078 |
for name, value in body.items():
|
| 1079 |
+
# worker_pages / factory_page 走下方的特殊处理(扩缩容/工人页重建), 不在数值表里
|
| 1080 |
+
if name in ("worker_pages", "factory_page"):
|
| 1081 |
+
continue
|
| 1082 |
spec = CONFIG_FIELDS.get(name)
|
| 1083 |
if not spec:
|
| 1084 |
skipped[name] = "unknown field"; continue
|