diff options
| author | John Estabrook <jestabro@vyos.io> | 2025-08-13 20:19:01 -0500 |
|---|---|---|
| committer | John Estabrook <jestabro@vyos.io> | 2025-08-13 20:23:40 -0500 |
| commit | d5ce41a69194142e450f41e894e3a883753f50f1 (patch) | |
| tree | b4f4c54e7134ae8ee4e1444f6a168623e3d17ca2 /src/services | |
| parent | 471441d9d6541401c5236399da0b7a56a7dd0ead (diff) | |
| download | vyos-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')
| -rw-r--r-- | src/services/api/rest/routers.py | 6 |
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') |
