updated partition_uids sections
This commit is contained in:
parent
075e25462e
commit
7e4a0259c7
2 changed files with 2 additions and 2 deletions
|
|
@ -108,7 +108,7 @@ def get_partition_details(disk, partition):
|
||||||
details.update({key.strip(): value.strip() for (key, value) in tmp})
|
details.update({key.strip(): value.strip() for (key, value) in tmp})
|
||||||
|
|
||||||
# Get MBR type / GPT GUID for extra details on "Unknown" partitions
|
# 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:
|
if guid:
|
||||||
details.update({
|
details.update({
|
||||||
'Description': guid.get('Description', '')[:29],
|
'Description': guid.get('Description', '')[:29],
|
||||||
|
|
|
||||||
|
|
@ -320,7 +320,7 @@ PARTITION_UIDS = {
|
||||||
}
|
}
|
||||||
|
|
||||||
def lookup_guid(guid):
|
def lookup_guid(guid):
|
||||||
return PARTITION_UIDS.get(guid.upper(), None)
|
return PARTITION_UIDS.get(guid.upper(), {})
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
print("This file is not meant to be called directly.")
|
print("This file is not meant to be called directly.")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue