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:
Sunil Mohan Adapa authored and James Valleroy committed 2019-03-31 08:37:30 -04:00
1 parent adaf3d6415
commit a84f5d6930
1 file changed
+2 -2
+2 -2
View File
@@ -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