d'oh.
This commit is contained in:
parent
39c1ba272c
commit
efc02fa4d9
2
_base.py
2
_base.py
@ -119,7 +119,7 @@ class BaseUpdater(object):
|
|||||||
if (disk_cmd.returncode != 0) or disk_cmd.stderr.decode('utf-8').strip() != '':
|
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')))
|
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_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',
|
info_cmd = subprocess.run(['blkid',
|
||||||
'-o', 'export',
|
'-o', 'export',
|
||||||
disk_dev],
|
disk_dev],
|
||||||
|
Reference in New Issue
Block a user