From 9ce2f440c351be03a26ee2379ec2f19764a8f1a4 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sun, 5 Jun 2011 22:58:20 +0200 Subject: [PATCH] dom0: remove import of old xend libraries --- dom0/qvm-core/qubes.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index aaf3c696..bca0013d 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -41,11 +41,6 @@ dry_run = False if not dry_run: - # Xen API - import xmlrpclib - from xen.xm import XenAPI - from xen.xend import sxp - import xen.lowlevel.xc import xen.lowlevel.xl import xen.lowlevel.xs @@ -888,7 +883,7 @@ class QubesVm(object): try: subprocess.check_call(xl_cmdline) - except XenAPI.Failure: + except: raise QubesException("Failed to load VM config") finally: qmemman_client.close() # let qmemman_daemon resume balancing