Change in vdsm[master]: Fixing call to setLinkAndNetwork after hook
by ybronhei@redhat.com
Yaniv Bronhaim has uploaded a new change for review.
Change subject: Fixing call to setLinkAndNetwork after hook
......................................................................
Fixing call to setLinkAndNetwork after hook
The third parameter should be the params field
Change-Id: I9188c6862b19a2473f8cfc5f5d207b35ca8c8507
Signed-off-by: Yaniv Bronhaim <ybronhei(a)redhat.com>
---
M vdsm/vm.py
1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/84/22884/1
diff --git a/vdsm/vm.py b/vdsm/vm.py
index 6467e0e..cc602cd 100644
--- a/vdsm/vm.py
+++ b/vdsm/vm.py
@@ -3239,10 +3239,11 @@
libvirt.VIR_DOMAIN_AFFECT_LIVE)
dev._deviceXML = vnicStrXML
self.log.debug("Nic has been updated:\n %s" % vnicStrXML)
- hooks.after_update_device(vnicStrXML, self.conf, custom)
+ hooks.after_update_device(vnicStrXML, self.conf, params=custom)
except Exception as e:
self.log.debug('Request failed: %s', vnicStrXML, exc_info=True)
- hooks.after_update_device_fail(vnicStrXML, self.conf, custom)
+ hooks.after_update_device_fail(vnicStrXML, self.conf,
+ params=custom)
raise SetLinkAndNetworkError(e.message)
yield
except Exception:
--
To view, visit http://gerrit.ovirt.org/22884
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9188c6862b19a2473f8cfc5f5d207b35ca8c8507
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <ybronhei(a)redhat.com>
9 years, 3 months