updated partition_uids sections

This commit is contained in:
Alan Mason 2017-12-03 09:08:50 -08:00
parent 075e25462e
commit 7e4a0259c7
2 changed files with 2 additions and 2 deletions

View file

@ -108,7 +108,7 @@ def get_partition_details(disk, partition):
details.update({key.strip(): value.strip() for (key, value) in tmp})
# Get MBR type / GPT GUID for extra details on "Unknown" partitions
guid = partition_uids.lookup_guid(details['Type'])
guid = partition_uids.lookup_guid(details.get('Type'))
if guid:
details.update({
'Description': guid.get('Description', '')[:29],

View file

@ -320,7 +320,7 @@ PARTITION_UIDS = {
}
def lookup_guid(guid):
return PARTITION_UIDS.get(guid.upper(), None)
return PARTITION_UIDS.get(guid.upper(), {})
if __name__ == '__main__':
print("This file is not meant to be called directly.")