Updated data.py

This commit is contained in:
2Shirt 2019-06-04 20:16:09 -06:00
parent 606efac3fe
commit ec5591453e
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -218,7 +218,7 @@ def mount_volumes(
report[vol_path] = vol_data report[vol_path] = vol_data
elif 'children' in vol_data: elif 'children' in vol_data:
# Skip LVM/RAID partitions (the real volume is mounted separately) # Skip LVM/RAID partitions (the real volume is mounted separately)
vol_data['show_data']['data'] = vol_data.get('fstype', 'UNKNOWN') vol_data['show_data']['data'] = vol_data.get('fstype', 'Unknown')
if vol_data.get('label', None): if vol_data.get('label', None):
vol_data['show_data']['data'] += ' "{}"'.format(vol_data['label']) vol_data['show_data']['data'] += ' "{}"'.format(vol_data['label'])
vol_data['show_data']['info'] = True vol_data['show_data']['info'] = True
@ -243,7 +243,7 @@ def mount_volumes(
if vol_data['show_data']['data'] == 'Failed to mount': if vol_data['show_data']['data'] == 'Failed to mount':
vol_data['mount_point'] = None vol_data['mount_point'] = None
else: else:
fstype = vol_data.get('fstype', 'UNKNOWN FS') fstype = vol_data.get('fstype', 'Unknown FS')
size_used = human_readable_size( size_used = human_readable_size(
mounted_volumes[vol_path]['used'], mounted_volumes[vol_path]['used'],
decimals=1, decimals=1,