diff --git a/_base.py b/_base.py index f9ce07b..25ff5c1 100644 --- a/_base.py +++ b/_base.py @@ -119,7 +119,7 @@ class BaseUpdater(object): if (disk_cmd.returncode != 0) or disk_cmd.stderr.decode('utf-8').strip() != '': raise RuntimeError('Could not get disk UUID: {0}'.format(disk_cmd.stderr.decode('utf-8'))) disk_dict = json.loads(disk_cmd.stdout.decode('utf-8')) - disk_dev = disk_dict['filesystems']['source'] + disk_dev = disk_dict['filesystems'][0]['source'] info_cmd = subprocess.run(['blkid', '-o', 'export', disk_dev],