[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH][4] xen: remove TapdiskException when add device



From a3005f45b578db0c035f03b08714357dcd53d06c Mon Sep 17 00:00:00 2001
From: Yi Li <peteryili@xxxxxxxxxxx>
Date: Fri, 21 Mar 2014 14:08:52 +0800
Subject: [PATCH][4] xen: remove TapdiskException when add device

using the VmError instead of TapdiskException when add device

Signed-off-by: Yi Li <peteryili@xxxxxxxxxxx>
---
 tools/python/xen/xend/server/BlktapController.py |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/tools/python/xen/xend/server/BlktapController.py
b/tools/python/xen/xend/server/BlktapController.py
index 60079eb..c8e5e24 100644
--- a/tools/python/xen/xend/server/BlktapController.py
+++ b/tools/python/xen/xend/server/BlktapController.py
@@ -198,9 +198,6 @@ class Blktap2Controller(BlktapController):
         self.waitForBackend_destroy(backpath)
         TapdiskController.destroy(path)

-class TapdiskException(Exception):
-    pass
-
 class TapdiskController(object):
     '''class which encapsulates all tapdisk control operations'''

@@ -229,7 +226,7 @@ class TapdiskController(object):
         stdout.close()
         stderr.close()
         if rc:
-            raise TapdiskException('%s failed (%s %s %s)' % \
+            raise VmError('%s failed (%s %s %s)' % \
                                        (args, rc, out, err))
         return out

-- 
1.7.1

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.