get more accurate model for lenovo #490
This commit is contained in:
parent
b17620bdb6
commit
a3dec841b6
|
@ -263,6 +263,11 @@ class Agent(BaseAuditModel):
|
|||
make = [x["Manufacturer"] for x in mobo if "Manufacturer" in x][0]
|
||||
model = [x["Product"] for x in mobo if "Product" in x][0]
|
||||
|
||||
if make.lower() == "lenovo":
|
||||
sysfam = [x["SystemFamily"] for x in comp_sys if "SystemFamily" in x][0]
|
||||
if "to be filled" not in sysfam.lower():
|
||||
model = sysfam
|
||||
|
||||
return f"{make} {model}"
|
||||
except:
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue