question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing parameters in function calls (pylint E1120)

See original GitHub issue
$ pylint --disable=all --enable E1120 *.py $(find ./keylime ./test -name '*.py' ! -name 'oldtest.py')
************* Module keylime.cmd.provider_platform_init
keylime/cmd/provider_platform_init.py:65:14: E1120: No value for argument 'pub_aik' in function call (no-value-for-parameter)
************* Module keylime.cmd.provider_vtpm_add
keylime/cmd/provider_vtpm_add.py:38:14: E1120: No value for argument 'pub_aik' in function call (no-value-for-parameter)

This is the function being called:

def doRegisterAgent(registrar_ip, registrar_port, agent_id, tpm_version, pub_ek, ekcert, pub_aik, pub_ek_tpm=None, aik_name=None):

tpm_version is not provided by these the 2 callers:

    # registrar it and get back a blob
    keyblob = registrar_client.doRegisterAgent(
        provider_reg_ip, provider_reg_port, group_uuid, ek, ekcert, group_aik)

and

    # registrar it and get back a blob
    keyblob = registrar_client.doRegisterAgent(
        provider_reg_ip, provider_reg_port, vtpm_uuid, group['pubekpem'], group['ekcert'], group['aikpem'])

Probably this code is not often used (anymore?) and that’s why nobody noticed…

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
THS-oncommented, Apr 11, 2022

I removed those files in https://github.com/keylime/keylime/pull/931, so I’ll close this issue.

0reactions
stale[bot]commented, Mar 2, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 7 days if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

no-value-for-parameter / E1120 - Pylint
no-value-for-parameter / E1120#. Message emitted: No value for argument %s in %s call. Description: Used when a function call passes too few arguments....
Read more >
Pylint complains "no value for argument 'cls'" - python
Typically this error is related to non-complaint function signatures. Given your code: class Container(object): def __init__(self, iterable, ...
Read more >
E1120 (no-value-for-parameter) | pylint-errors - GitHub Pages
Used when a function call passes too few arguments. Related resources: Issue Tracker. This site is open source. Improve this page.
Read more >
Decorators confuse E1120 analysis · Issue #259 · PyCQA/pylint
The analysis reports "No value passed for parameter 'param' in function call (no-value-for-parameter)" This is incorrect, since the actual function being ...
Read more >
pylint: Fix migration E1120 no-value-for-parameter - OpenDev
Pylint raises E1120 on all many of our migrations because the insert call is missing the dml parameter: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found