summaryrefslogtreecommitdiff
path: root/src/services/api/rest/routers.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2025-08-13 20:19:01 -0500
committerJohn Estabrook <jestabro@vyos.io>2025-08-13 20:23:40 -0500
commitd5ce41a69194142e450f41e894e3a883753f50f1 (patch)
treeb4f4c54e7134ae8ee4e1444f6a168623e3d17ca2 /src/services/api/rest/routers.py
parent471441d9d6541401c5236399da0b7a56a7dd0ead (diff)
downloadvyos-1x-d5ce41a69194142e450f41e894e3a883753f50f1.tar.gz
vyos-1x-d5ce41a69194142e450f41e894e3a883753f50f1.zip
http-api: T7711: config sync method should be async
This is needed due to the recent change of the underlying method _configure_op to async.
Diffstat (limited to 'src/services/api/rest/routers.py')
-rw-r--r--src/services/api/rest/routers.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/services/api/rest/routers.py b/src/services/api/rest/routers.py
index 329d6e51f..d1383a356 100644
--- a/src/services/api/rest/routers.py
+++ b/src/services/api/rest/routers.py
@@ -511,12 +511,14 @@ async def configure_op(
@router.post('/configure-section')
-def configure_section_op(
+async def configure_section_op(
data: Union[ConfigSectionModel, ConfigSectionListModel, ConfigSectionTreeModel],
request: Request,
background_tasks: BackgroundTasks,
):
- return _configure_op(data, request, background_tasks)
+ out = await _configure_op(data, request, background_tasks)
+
+ return out
@router.post('/retrieve')