diff options
author | John Estabrook <jestabro@vyos.io> | 2024-03-05 13:44:43 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 13:44:43 -0600 |
commit | b7e12d3fcc9768f2890a7823e266643ffb5568c4 (patch) | |
tree | 1035951dbffa5b3c5e44076663b3f5c42f8a8b85 /src/services/vyos-http-api-server | |
parent | 91a48de5f169519025826bb1783706055fdf5dfd (diff) | |
parent | 7503e419d0dbc9ba81f7299d9df173c0a82f20da (diff) | |
download | vyos-1x-b7e12d3fcc9768f2890a7823e266643ffb5568c4.tar.gz vyos-1x-b7e12d3fcc9768f2890a7823e266643ffb5568c4.zip |
Merge pull request #3089 from jestabro/allocate-under-lock
http-api: T6069: fix allocation outside of thread lock
Diffstat (limited to 'src/services/vyos-http-api-server')
-rwxr-xr-x | src/services/vyos-http-api-server | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/services/vyos-http-api-server b/src/services/vyos-http-api-server index 40d442e30..a7b14a1a3 100755 --- a/src/services/vyos-http-api-server +++ b/src/services/vyos-http-api-server @@ -459,7 +459,6 @@ def _configure_op(data: Union[ConfigureModel, ConfigureListModel, request: Request, background_tasks: BackgroundTasks): session = app.state.vyos_session env = session.get_session_env() - config = Config(session_env=env) endpoint = request.url.path @@ -474,6 +473,8 @@ def _configure_op(data: Union[ConfigureModel, ConfigureListModel, # so the lock is really global lock.acquire() + config = Config(session_env=env) + status = 200 msg = None error_msg = None |