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

Using is_mounted filter raises TypeError #11

Open
micallefdaniel opened this issue Mar 9, 2023 · 0 comments
Open

Using is_mounted filter raises TypeError #11

micallefdaniel opened this issue Mar 9, 2023 · 0 comments

Comments

@micallefdaniel
Copy link

Consider the following example:

from blkinfo import BlkDiskInfo

myblkd = BlkDiskInfo()
filters = dict(ro=False, tran='usb', is_mounted=False)
all_my_disks = myblkd.get_disks(filters)

This raises TypeError: unhashable type: 'dict' (only when including is_mounted).

The issue is raised in wrappers.py line 182 since child_name is a dict.

It looks like node['children'] is a list of dicts.

Additional info;

  • Parent name is sda
  • child node name is sda1
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