mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
storage: Don't log error when checking if partition is expandable
Without the patch, every time the storage page is visited an error is logged. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
adaf3d6415
commit
a84f5d6930
@ -188,8 +188,8 @@ def is_expandable(device):
|
||||
return False
|
||||
|
||||
try:
|
||||
output = actions.superuser_run('storage',
|
||||
['is-partition-expandable', device])
|
||||
output = actions.superuser_run(
|
||||
'storage', ['is-partition-expandable', device], log_error=False)
|
||||
except actions.ActionError:
|
||||
return False
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user