From 33016220be8e156720a3692ca309753c4e84cd2a Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Tue, 20 Jun 2023 12:37:38 -0500 Subject: http-api: T5305: configure operations should not be defined async --- src/services/vyos-http-api-server | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/services/vyos-http-api-server b/src/services/vyos-http-api-server index 31430170a..66e80ced5 100755 --- a/src/services/vyos-http-api-server +++ b/src/services/vyos-http-api-server @@ -494,13 +494,13 @@ def _configure_op(data: Union[ConfigureModel, ConfigureListModel, return success(msg) @app.post('/configure') -async def configure_op(data: Union[ConfigureModel, +def configure_op(data: Union[ConfigureModel, ConfigureListModel], request: Request): return _configure_op(data, request) @app.post('/configure-section') -async def configure_section_op(data: Union[ConfigSectionModel, +def configure_section_op(data: Union[ConfigSectionModel, ConfigSectionListModel], request: Request): return _configure_op(data, request) -- cgit v1.2.3