Francesco Romani has posted comments on this change. Change subject: hostdev: use specific device classes in HostDevice ......................................................................
Patch Set 8: (1 comment) https://gerrit.ovirt.org/#/c/57963/8/vdsm/virt/vmdevices/hostdevice.py File vdsm/virt/vmdevices/hostdevice.py: PS8, Line 320: @classmethod : def update_device_info(cls, vm, device_conf): : for device_xml in vm.domain.get_device_elements('hostdev'): : device_type = device_xml.getAttribute('type') : cls._DEVICE_MAPPING[device_type].update_device_info( : vm, device_conf, device_xml) > I also prefer not having special cases when creating device classes. Using OK, since indeed I don't have any good reason against __new__ and we're explored a good number of alternatives, I'm now convinced __new__ is the right approach here. -- To view, visit https://gerrit.ovirt.org/57963 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I2734b7ec789c0ce57b64d7699cbe967c774bb608 Gerrit-PatchSet: 8 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Martin Polednik <[email protected]> Gerrit-Reviewer: Francesco Romani <[email protected]> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Martin Polednik <[email protected]> Gerrit-Reviewer: Milan Zamazal <[email protected]> Gerrit-Reviewer: gerrit-hooks <[email protected]> Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/admin/lists/[email protected]
