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

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
This commit is contained in:
Tom Wilkie committed 2007-03-26 17:22:45 +01:00
1 parent 17a7dd0661
commit 38ef20418f
1 file changed
+2 -1
+2 -1
View File
@@ -2354,7 +2354,8 @@ class XendDomainInfo:
if not dev_uuid:
raise XendError('Failed to create device')
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]
dev_control = self.getDeviceController('vif')
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.