Fix mount-all-volumes
This commit is contained in:
parent
e03956f2fe
commit
193d207d5b
1 changed files with 1 additions and 1 deletions
|
|
@ -205,7 +205,7 @@ def mount_volumes(device_path=None, read_write=False, scan_corestorage=False):
|
|||
json_data = get_json_from_command(cmd)
|
||||
|
||||
# Build list of volumes
|
||||
for dev in _get_volumes(json_data.get('blockdevices', [])):
|
||||
for dev in _get_volumes(json_data.get('blockdevices', [{}])[0]):
|
||||
volumes.append(dev)
|
||||
if dev.get('parttype', '') == UUID_CORESTORAGE:
|
||||
containers.append(dev['name'])
|
||||
|
|
|
|||
Loading…
Reference in a new issue