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 2019-03-28 14:33:51 -07:00 committed by James Valleroy
parent adaf3d6415
commit a84f5d6930
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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