On Wed, Dec 13, 2017 at 9:30 AM Dan Kenigsberg <danken@redhat.com> wrote:On Tue, Dec 12, 2017 at 10:16 PM, Nir Soffer <nsoffer@redhat.com> wrote:On Tue, Dec 12, 2017 at 11:04 AM Irit Goihman <igoihman@redhat.com> wrote:Hi,I pushed two patches fixing some of the issues:Thanks for the quick response!I sent this for the libvirt events, turns out the code is mostly correct, assumingthat libvirt does not add new arguments to the callback api, but pylint cannotverify this.With this we have only these errors:************* Module vdsm.v2v E:1368,27: Instance of 'closing' has no 'read' member (no-member)This is handled by https://gerrit.ovirt.org/#/c/85318/but I think we can do a better fix *without* disabling any warning,see the comment in:************* Module vdsm.tool.configurator E:118,12: No value for argument 'action' in function call (no-value-for-parameter) E:158,12: No value for argument 'action' in function call (no-value-for-parameter) E:193,12: No value for argument 'action' in function call (no-value-for-parameter) E:215,12: No value for argument 'action' in function call (no-value-for-parameter)This is handled by https://gerrit.ovirt.org/#/c/85316/but I don't understand the fix. The code seems fineand the fix make it worse.************* Module vdsm.virt.vm_migrate_hook E:199, 4: No value for argument 'domain' in function call (no-value-for-parameter) E:199, 4: No value for argument 'event' in function call (no-value-for-parameter) E:199, 4: No value for argument 'phase' in function call (no-value-for-parameter)Francesco, can you look at these?Actually, that's owned by network; I hope Petr can fix it on Friday.These are the only errors now:************* Module vdsm.virt.vm_migrate_hook E:199, 4: No value for argument 'domain' in function call (no-value-for-parameter) E:199, 4: No value for argument 'event' in function call (no-value-for-parameter) E:199, 4: No value for argument 'phase' in function call (no-value-for-parameter)Using pylint 1.8, released 4 days ago.
************* Module vdsm.network.netlink.monitor E:172,58: Instance of 'closing' has no 'poll' member (no-member)On Tue, Dec 12, 2017 at 2:09 AM, Nir Soffer <nsoffer@redhat.com> wrote:I'm trying to upgrade pylint to latest so we can enjoy latest fixeslike this:Now we have some new errors, please check.************* Module vdsm.clientIF E:588,16: Possible unbalanced tuple unpacking with sequence: left side has 2 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)587 if eventid == libvirt.VIR_DOMAIN_EVENT_ID_LIFECYCLE: 588 event, detail = args[:-1] 589 v.onLibvirtLifecycleEvent(event, detail, None)Code is indeed incorrect, should be:event, detail = args[:2]E:593,16: Possible unbalanced tuple unpacking with sequence: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking) E:596,16: Possible unbalanced tuple unpacking with sequence: left side has 4 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking) E:599,16: Possible unbalanced tuple unpacking with sequence: left side has 5 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking) E:610,16: Possible unbalanced tuple unpacking with sequence: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking) E:615,16: Possible unbalanced tuple unpacking with sequence: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking) E:618,16: Possible unbalanced tuple unpacking with sequence: left side has 4 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking) ************* Module vdsm.v2v E:1368,27: Instance of 'closing' has no 'read' member (no-member) ************* Module vdsm.tool.configurator E:118,12: No value for argument 'action' in function call (no-value-for-parameter) E:158,12: No value for argument 'action' in function call (no-value-for-parameter) E:193,12: No value for argument 'action' in function call (no-value-for-parameter) E:215,12: No value for argument 'action' in function call (no-value-for-parameter) ************* Module vdsm.virt.vm_migrate_hook E:199, 4: No value for argument 'domain' in function call (no-value-for-parameter) E:199, 4: No value for argument 'event' in function call (no-value-for-parameter) E:199, 4: No value for argument 'phase' in function call (no-value-for-parameter) ************* Module vdsm.network.netlink.monitor E:172,58: Instance of 'closing' has no 'poll' member (no-member)_______________________________________________
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel--