summaryrefslogtreecommitdiff
path: root/src/services/vyos-http-api-server
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-02-14 17:03:31 -0600
committerJohn Estabrook <jestabro@vyos.io>2023-02-14 18:27:46 -0600
commit53bc5334d4da917920c08e0b207e49254566d73d (patch)
tree5f76afe1e7e2945aa5ecb547259ac5a746b17ee2 /src/services/vyos-http-api-server
parente0e550ad1187e10bcd730675c11714a075abc4a0 (diff)
downloadvyos-1x-53bc5334d4da917920c08e0b207e49254566d73d.tar.gz
vyos-1x-53bc5334d4da917920c08e0b207e49254566d73d.zip
http-api: T5006: add explicit async to retrieve/configure methods
Diffstat (limited to 'src/services/vyos-http-api-server')
-rwxr-xr-xsrc/services/vyos-http-api-server4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services/vyos-http-api-server b/src/services/vyos-http-api-server
index f59e089ae..cd73f38ec 100755
--- a/src/services/vyos-http-api-server
+++ b/src/services/vyos-http-api-server
@@ -425,7 +425,7 @@ async def validation_exception_handler(request, exc):
return error(400, str(exc.errors()[0]))
@app.post('/configure')
-def configure_op(data: Union[ConfigureModel, ConfigureListModel]):
+async def configure_op(data: Union[ConfigureModel, ConfigureListModel]):
session = app.state.vyos_session
env = session.get_session_env()
config = vyos.config.Config(session_env=env)
@@ -494,7 +494,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)