mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Make 05_block_attach_and_dettach_device_repeatedly_pos pass on xm via XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
This commit is contained in:
1 parent
6f9deffd5b
commit
09502ab38f
1 file changed
+2
-1
@@ -2410,7 +2410,8 @@ class XendDomainInfo:
|
||||
raise XendError('Device does not exist')
|
||||
|
||||
try:
|
||||
if self.state == XEN_API_VM_POWER_STATE_RUNNING:
|
||||
if self.state == XEN_API_VM_POWER_STATE_RUNNING \
|
||||
or self.state == XEN_API_VM_POWER_STATE_PAUSED:
|
||||
_, config = self.info['devices'][dev_uuid]
|
||||
devid = config.get('devid')
|
||||
if devid != None:
|
||||
|
||||