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:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I removed those files in https://github.com/keylime/keylime/pull/931, so I’ll close this issue.
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.