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:
Tom Wilkie committed 2007-03-26 13:46:07 +01:00
1 parent 6f9deffd5b
commit 09502ab38f
1 file changed
+2 -1
+2 -1
View File
@@ -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:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.