-
Notifications
You must be signed in to change notification settings - Fork 122
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Is there an existing issue for this?
- I have searched the existing issues
Description of the bug
There's a get and filter method on TagManager but it doesn't seem to be working.
Steps To Reproduce
Try proj.tags.get("somekey"), outcome:
Traceback (most recent call last):
File "/home/xvirgov/repos/ops/snyk/snyktesting.py", line 15, in <module>
print(proj.tags.get("sometag"))
File "/home/xvirgov/repos/ops/snyk/.venv/lib/python3.10/site-packages/snyk/managers.py", line 23, in get
return next(x for x in self.all() if x.id == id)
File "/home/xvirgov/repos/ops/snyk/.venv/lib/python3.10/site-packages/snyk/managers.py", line 23, in <genexpr>
return next(x for x in self.all() if x.id == id)
AttributeError: 'dict' object has no attribute 'id'
Neither get nor filter is documented how it should work on tagmanager.
Additional Information
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working