From 3e8d856bb14e359dbed5d503cc2cae7d3efcb6e1 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Wed, 22 Feb 2023 14:37:55 +0100 Subject: [PATCH] use wrapper only in main thread --- vm/kojivmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/kojivmd b/vm/kojivmd index 4f5cb983..59f18772 100755 --- a/vm/kojivmd +++ b/vm/kojivmd @@ -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: