ia64/xen-unstable

changeset 14559:15c74855ba68

Make 05_block_attach_and_dettach_device_repeatedly_pos pass on xm via XenAPI

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
author Tom Wilkie <tom.wilkie@gmail.com>
date Mon Mar 26 13:46:07 2007 +0100 (2007-03-26)
parents f4ce943f25f6
children e5f13664cfee
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Mon Mar 26 13:29:27 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Mon Mar 26 13:46:07 2007 +0100
     1.3 @@ -2410,7 +2410,8 @@ class XendDomainInfo:
     1.4              raise XendError('Device does not exist')
     1.5  
     1.6          try:
     1.7 -            if self.state == XEN_API_VM_POWER_STATE_RUNNING:
     1.8 +            if self.state == XEN_API_VM_POWER_STATE_RUNNING \
     1.9 +                   or self.state == XEN_API_VM_POWER_STATE_PAUSED:
    1.10                  _, config = self.info['devices'][dev_uuid]
    1.11                  devid = config.get('devid')
    1.12                  if devid != None: