diff options
author | John Estabrook <jestabro@vyos.io> | 2023-06-20 12:37:38 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2023-06-20 12:42:14 -0500 |
commit | 33016220be8e156720a3692ca309753c4e84cd2a (patch) | |
tree | 6039670eb21dd89cc257fb0542bdf351d6c4d959 /src/services | |
parent | 19c16a47d2ead176c5882e593a5d98e321be9cd4 (diff) | |
download | vyos-1x-33016220be8e156720a3692ca309753c4e84cd2a.tar.gz vyos-1x-33016220be8e156720a3692ca309753c4e84cd2a.zip |
http-api: T5305: configure operations should not be defined async
Diffstat (limited to 'src/services')
-rwxr-xr-x | src/services/vyos-http-api-server | 4 |
1 files changed, 2 insertions, 2 deletions
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) |