mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +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
|
return False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
output = actions.superuser_run('storage',
|
output = actions.superuser_run(
|
||||||
['is-partition-expandable', device])
|
'storage', ['is-partition-expandable', device], log_error=False)
|
||||||
except actions.ActionError:
|
except actions.ActionError:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user