Fix VimAdminThread run method 88/13388/2
authorGulsum Atici <gulsum.atici@canonical.com>
Mon, 15 May 2023 08:55:13 +0000 (11:55 +0300)
committerGulsum Atici <gulsum.atici@canonical.com>
Mon, 15 May 2023 09:05:33 +0000 (12:05 +0300)
commitaba1518f487b4b65861eb30f553c4edb72ad972e
treebeb0e89714eff717952675ecb907bc15a8ed31ac
parentf17e5bb6b6da4432628dd65ce9ad633e6441f67c
Fix VimAdminThread run method

The run_coroutine_threadsafe() function is used to schedule a coroutine object from a different thread and returns a concurrent.futures.Future.
run_coroutine_threadsafe is unnecessary to run the main task and replaced with asyncio.run().

Change-Id: I8ea31828a9798140d596165443bdf26659b4eef8
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
NG-RO/osm_ng_ro/vim_admin.py
releasenotes/notes/fix_vim_adminthread_run_method-7bd0f7c32e932645.yaml [new file with mode: 0644]