mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Handle introduce_domain failing when the domain is already introduced.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
1 parent
7aa5afeb6c
commit
001ee4ddde
1 file changed
+7
-1
@@ -350,7 +350,13 @@ class XenStore:
|
||||
self.watchThread = None
|
||||
|
||||
def introduceDomain(self, dom, page, evtchn, path):
|
||||
self.getxs().introduce_domain(dom, page, evtchn.port1, path)
|
||||
try:
|
||||
self.getxs().introduce_domain(dom, page, evtchn.port1, path)
|
||||
except RuntimeError, ex:
|
||||
if ex.args[0] == errno.EISCONN:
|
||||
return None
|
||||
else:
|
||||
raise
|
||||
|
||||
def releaseDomain(self, dom):
|
||||
self.getxs().release_domain(dom)
|
||||
|
||||