Change in vdsm[master]: hostdev: use setup instead of detach in hotplug

mpolednik at redhat.com mpolednik at redhat.com
Tue Apr 19 11:55:29 UTC 2016


Martin Polednik has uploaded a new change for review.

Change subject: hostdev: use setup instead of detach in hotplug
......................................................................

hostdev: use setup instead of detach in hotplug

Change-Id: I96853249e32c7b15c6a1c11b5a1ab385d7c4c827
Signed-off-by: Martin Polednik <mpolednik at redhat.com>
---
M vdsm/virt/vm.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/38/56338/1

diff --git a/vdsm/virt/vm.py b/vdsm/virt/vm.py
index 7a17a16..920e30a 100644
--- a/vdsm/virt/vm.py
+++ b/vdsm/virt/vm.py
@@ -2135,7 +2135,7 @@
                                                          **dev_spec)
             dev_objects.append(dev_object)
             try:
-                dev_object.detach()
+                dev_object.setup()
             except libvirt.libvirtError:
                 # We couldn't detach one of the devices. Halt.
                 self.log.exception('Could not detach a device from a host.')


-- 
To view, visit https://gerrit.ovirt.org/56338
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I96853249e32c7b15c6a1c11b5a1ab385d7c4c827
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Martin Polednik <mpolednik at redhat.com>


More information about the vdsm-patches mailing list