From efc02fa4d988e51d70df9c42466e3210db7e9611 Mon Sep 17 00:00:00 2001 From: brent s Date: Wed, 20 Jan 2021 04:56:04 -0500 Subject: [PATCH] d'oh. --- _base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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],