mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
udiskie: Remove the unused ejectable property
It is also being set incorrectly. It is not very useful because we should still unmount filesystems even if the device is not ejectable. Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
4184784988
commit
1a11b4967a
@ -52,12 +52,6 @@ def list_devices():
|
||||
'filesystem_type': block.props.id_type
|
||||
}
|
||||
|
||||
try:
|
||||
drive = client.get_drive_for_block(block)
|
||||
device['ejectable'] = drive.props.id_type
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
try:
|
||||
device['mount_points'] = obj.get_filesystem().props.mount_points
|
||||
except Exception:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user