diff options
author | John Estabrook <jestabro@vyos.io> | 2023-08-24 11:15:11 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2023-08-24 11:15:11 -0500 |
commit | 9f332dc34c933eb1f309fb43923d602c8ec9958d (patch) | |
tree | f7dfb1ebf1d3dcd839e3c7c5c863351d95d5941c /src | |
parent | f70e2b69a5ba80abda044ad4f9cdc5a345bce2fd (diff) | |
download | vyos-1x-9f332dc34c933eb1f309fb43923d602c8ec9958d.tar.gz vyos-1x-9f332dc34c933eb1f309fb43923d602c8ec9958d.zip |
http-api: T5006: add explicit async to retrieve operation
Diffstat (limited to 'src')
-rwxr-xr-x | src/services/vyos-http-api-server | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/vyos-http-api-server b/src/services/vyos-http-api-server index ece3aa9b2..a5dccb3b4 100755 --- a/src/services/vyos-http-api-server +++ b/src/services/vyos-http-api-server @@ -480,7 +480,7 @@ def configure_op(data: Union[ConfigureModel, ConfigureListModel]): return success(None) @app.post("/retrieve") -def retrieve_op(data: RetrieveModel): +async def retrieve_op(data: RetrieveModel): session = app.state.vyos_session env = session.get_session_env() config = vyos.config.Config(session_env=env) |