use lshw for inventory #58
1 changed files with 12 additions and 5 deletions
|
@ -9,13 +9,20 @@ def is_tool(name):
|
||||||
def get_vendor(name):
|
def get_vendor(name):
|
||||||
vendors = {
|
vendors = {
|
||||||
'ST': 'Seagate',
|
'ST': 'Seagate',
|
||||||
'Crucial': 'Crucial',
|
'CRUCIAL': 'Crucial',
|
||||||
'Micron': 'Micron',
|
'MICRON': 'Micron',
|
||||||
'Intel': 'Intel',
|
'INTEL': 'Intel',
|
||||||
'Samsung': 'Samsung',
|
'SAMSUNG': 'Samsung',
|
||||||
|
'EH0': 'HP',
|
||||||
'HGST': 'HGST',
|
'HGST': 'HGST',
|
||||||
|
'HUH': 'HGST',
|
||||||
|
'MB': 'Toshiba',
|
||||||
|
'MC': 'Toshiba',
|
||||||
|
'MD': 'Toshiba',
|
||||||
|
'MG': 'Toshiba',
|
||||||
|
'WD': 'WDC'
|
||||||
}
|
}
|
||||||
for key, value in vendors.items():
|
for key, value in vendors.items():
|
||||||
if name.startswith(key):
|
if name.upper().startswith(key):
|
||||||
return value
|
return value
|
||||||
return name
|
return name
|
||||||
|
|
Loading…
Add table
Reference in a new issue