get more accurate model for lenovo #490

This commit is contained in:
wh1te909 2021-05-11 17:15:21 +00:00
parent b17620bdb6
commit a3dec841b6
1 changed files with 5 additions and 0 deletions

View File

@ -263,6 +263,11 @@ class Agent(BaseAuditModel):
make = [x["Manufacturer"] for x in mobo if "Manufacturer" in x][0] make = [x["Manufacturer"] for x in mobo if "Manufacturer" in x][0]
model = [x["Product"] for x in mobo if "Product" 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}" return f"{make} {model}"
except: except:
pass pass