More verbose output for unformatted drives.
This commit is contained in:
parent
252dfb295b
commit
c7bcba7a6a
|
|
@ -506,6 +506,8 @@ def disk_info(drive, *positionals, **kwargs):
|
||||||
fileformats.append(child['fstype'])
|
fileformats.append(child['fstype'])
|
||||||
if child['label'] != None:
|
if child['label'] != None:
|
||||||
labels.append(child['label'])
|
labels.append(child['label'])
|
||||||
|
else:
|
||||||
|
labels = ['*Empty drive (no partitions)*']
|
||||||
info['fileformats'] = fileformats
|
info['fileformats'] = fileformats
|
||||||
info['labels'] = labels
|
info['labels'] = labels
|
||||||
info['model'] = get_disk_model(drive)
|
info['model'] = get_disk_model(drive)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue