From 0eaae9790c02dfb04f4f1af32a98f246af1077ab Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sat, 18 May 2013 03:54:23 +0200 Subject: [PATCH] Use QubesVMMConnection object Introduced in core-admin: af521bd Wrap all VMM connection related object into QubesVMMConnection class --- qrexec/qrexec-policy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qrexec/qrexec-policy b/qrexec/qrexec-policy index 5329bf3..2831b41 100755 --- a/qrexec/qrexec-policy +++ b/qrexec/qrexec-policy @@ -3,7 +3,7 @@ import sys import os import os.path import subprocess -from qubes.qubes import libvirt_conn +from qubes.qubes import vmm import qubes.guihelpers from optparse import OptionParser import fcntl @@ -82,7 +82,7 @@ def find_policy(policy, domain, target): return get_default_policy() def is_domain_running(target): - libvirt_dom = libvirt_conn.lookupByName(target) + libvirt_dom = vmm.libvirt_conn.lookupByName(target) if libvirt_dom: return libvirt_dom.isActive() else: