Skip to content

[BUG]: Filter and get on tagManager doesn't work #222

@xvirgov

Description

@xvirgov

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

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions