use wrapper only in main thread

This commit is contained in:
Tomas Kopecek 2023-02-22 14:37:55 +01:00
parent 7cc3fe6a52
commit 3e8d856bb1

View file

@ -904,7 +904,7 @@ class VMExecTask(BaseTaskHandler):
self.task_info = task_info
conn = LibvirtConnection()
conn = libvirt.open(None)
clone_name = self.clone(conn, name, opts)
self.logger.debug('Cloned VM %s to %s', name, clone_name)
try: