Fixed wk.os.linux.mount_volumes()
This commit is contained in:
parent
a81e6f80e6
commit
7e69eff7a8
1 changed files with 3 additions and 3 deletions
|
|
@ -138,9 +138,9 @@ def mount_volumes(device_path=None, read_write=False, scan_corestorage=False):
|
||||||
|
|
||||||
# Attempt to mount volume
|
# Attempt to mount volume
|
||||||
if not already_mounted:
|
if not already_mounted:
|
||||||
mount(vol.path, read_write=read_write)
|
try:
|
||||||
proc = run_program(cmd, check=False)
|
mount(vol.path, read_write=read_write)
|
||||||
if proc.returncode:
|
except RuntimeError:
|
||||||
result += 'Failed to mount'
|
result += 'Failed to mount'
|
||||||
report.append(std.color_string(result, 'RED'))
|
report.append(std.color_string(result, 'RED'))
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue