More verbose output for unformatted drives.

This commit is contained in:
Anton Hvornum 2019-11-18 16:48:37 +01:00
parent 252dfb295b
commit c7bcba7a6a
1 changed files with 2 additions and 0 deletions

View File

@ -506,6 +506,8 @@ def disk_info(drive, *positionals, **kwargs):
fileformats.append(child['fstype'])
if child['label'] != None:
labels.append(child['label'])
else:
labels = ['*Empty drive (no partitions)*']
info['fileformats'] = fileformats
info['labels'] = labels
info['model'] = get_disk_model(drive)