Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong method parameter "cve_ids" in TUTORIAL.md #60

Open
pedrohc opened this issue Nov 6, 2024 · 0 comments
Open

Wrong method parameter "cve_ids" in TUTORIAL.md #60

pedrohc opened this issue Nov 6, 2024 · 0 comments

Comments

@pedrohc
Copy link

pedrohc commented Nov 6, 2024

specified_cves_flaws_response = session.flaws.retrieve_list(cve_ids="CVE-1111-2222,CVE-1111-2223")

I was trying this exact line but got an error of unexpected keyword argument for "cve_ids". Using "cve_id" instead worked.

flaws = session.flaws.retrieve_list(cve_ids="CVE-2024-43425,CVE-2024-43426,CVE-2024-43427")
Traceback (most recent call last):
File "", line 1, in
File "/home/psampaio/.local/lib/python3.12/site-packages/osidb_bindings/session.py", line 436, in retrieve_list
response = sync_fn(*args, client=self.client(), **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/psampaio/.local/lib/python3.12/site-packages/osidb_bindings/session.py", line 128, in inner
return fn(*args, **new_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^
TypeError: sync() got an unexpected keyword argument 'cve_ids'

Also 'communication' is spelled wrong here:

Retrieve a list of Flaws. Handles the pagination and returns the generator of individual resource entities. Uses asynchronous communitation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant