Fix mount-all-volumes

This commit is contained in:
2Shirt 2022-05-21 15:03:34 -07:00
parent e03956f2fe
commit 193d207d5b
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -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'])