fix {'part_id': ['This field may not be null.']} error

This commit is contained in:
Solvik Blum 2019-09-10 15:59:52 +02:00
parent 4303312b17
commit b78d919064
No known key found for this signature in database
GPG key ID: CC12B3DC262B6C47

View file

@ -125,7 +125,7 @@ class LSHW():
d["description"] = dimm.get("description")
d["id"] = dimm.get("id")
d["serial"] = dimm.get("serial", 'N/A')
d["vendor"] = dimm.get("vendor")
d["vendor"] = dimm.get("vendor", 'N/A')
d["product"] = dimm.get("product")
d["size"] = dimm.get("size", 0) / 2 ** 20 / 1024