ia64/xen-unstable

changeset 14578:70f4d99d1aed

Fix xm network-attach via XenAPI re: paused domain state

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
author Tom Wilkie <tom.wilkie@gmail.com>
date Mon Mar 26 17:22:45 2007 +0100 (2007-03-26)
parents ddc2f8b061a3
children b685bb321d1e bc2811bf7771
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Mon Mar 26 16:48:20 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Mon Mar 26 17:22:45 2007 +0100
     1.3 @@ -2354,7 +2354,8 @@ class XendDomainInfo:
     1.4          if not dev_uuid:
     1.5              raise XendError('Failed to create device')
     1.6          
     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  
    1.11              _, config = self.info['devices'][dev_uuid]
    1.12              dev_control = self.getDeviceController('vif')