Martin Polednik has posted comments on this change.
Change subject: virt: Safe device type check for console device
......................................................................
Patch Set 1:
(1 comment)
https://gerrit.ovirt.org/#/c/42881/1/vdsm/virt/vm.py
File vdsm/virt/vm.py:
Line 3907: if not hasattr(dev, 'alias'):
Line 3908: dev.alias = alias
Line 3909:
Line 3910: for dev in self.conf['devices']:
Line 3911: if dev.get('device') == hwclass.CONSOLE and \
According to the API spec, 'device' is not present in
VmRngDevice structure
Sorry, my failure - this points to an issue in API itself
rather than the code. If the device is sent from engine correctly at this time, then I
suggest fixing the API to correctly specify the device rather than getting in between
spec.
Line 3912: not dev.get('alias'):
Line 3913: dev['alias'] = alias
Line 3914:
Line 3915: def _getUnderlyingSmartcardDeviceInfo(self):
--
To view, visit
https://gerrit.ovirt.org/42881
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I6a0c1adc6c3b2ab8d50b6e3ac712ce2dcf04cc6c
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Shmuel Leib Melamud <smelamud(a)redhat.com>
Gerrit-Reviewer: Arik Hadas <ahadas(a)redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Martin Polednik <mpolednik(a)redhat.com>
Gerrit-Reviewer: Michal Skrivanek <mskrivan(a)redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofrenkel(a)redhat.com>
Gerrit-Reviewer: Shmuel Leib Melamud <smelamud(a)redhat.com>
Gerrit-Reviewer: Shmuel Melamud <smelamud(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-HasComments: Yes