Fix typo in waitForBackend() for phantom VBDs
PATCH 1/1 Fix typo in waitForBackend() for phantom VBDs
Hi,
I believe that a value of "result['status']" is an integer, isn't a character string.
tools/python/xen/xend/server/DevController.py +1 -1
@@ -542,7 +542,7 @@ class DevController: xswatch(statusPath, hotplugStatusCallback, ev, result) ev.wait(DEVICE_CREATE_TIMEOUT) err = xstransact.Read(statusPath, HOTPLUG_ERROR_NODE) - if result['status'] != 'Connected': + if result['status'] != Connected: return (result['status'], err) backpath = self.readVm(devid, "backend")
Signed-off-by Masaki Kanno <[email protected]>
Best regards,
Kan
tools/python/xen/xend/server/DevController.py +1 -1
@@ -542,7 +542,7 @@ class DevController: xswatch(statusPath, hotplugStatusCallback, ev, result) ev.wait(DEVICE_CREATE_TIMEOUT) err = xstransact.Read(statusPath, HOTPLUG_ERROR_NODE) - if result['status'] != 'Connected': + if result['status'] != Connected: return (result['status'], err) backpath = self.readVm(devid, "backend")
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel