Change in vdsm[master]: vdsm: introduce hostdev module
danken at redhat.com
danken at redhat.com
Fri Sep 26 17:25:04 UTC 2014
Dan Kenigsberg has posted comments on this change.
Change subject: vdsm: introduce hostdev module
......................................................................
Patch Set 10: Code-Review-1
(2 comments)
http://gerrit.ovirt.org/#/c/32313/10/vdsm/hostdev.py
File vdsm/hostdev.py:
Line 70:
Line 71: for device in VM.conf['devices']:
Line 72: if device['device'] == 'hostdev':
Line 73: try:
Line 74: devices[device['name']] = vmId
PS8 was clearer in my opinion.
Line 75: except KeyError:
Line 76: raise logging.warn('Vm %s has hostdev without mandatory '
Line 77: 'name attribute!', vmId)
Line 78:
Line 72: if device['device'] == 'hostdev':
Line 73: try:
Line 74: devices[device['name']] = vmId
Line 75: except KeyError:
Line 76: raise logging.warn('Vm %s has hostdev without mandatory '
warn() return None, and this is what you raise here - I suppose it's a typo?
Line 77: 'name attribute!', vmId)
Line 78:
Line 79: return devices
Line 80:
--
To view, visit http://gerrit.ovirt.org/32313
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I2bba96db5be180d00cb74fb89b10c5b09e5bd180
Gerrit-PatchSet: 10
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Martin Polednik <mpolednik at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Martin Polednik <mpolednik at redhat.com>
Gerrit-Reviewer: Michal Skrivanek <michal.skrivanek at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
More information about the vdsm-patches
mailing list