fix
This commit is contained in:
parent
96268c8caf
commit
88bdabb64f
|
@ -115,7 +115,7 @@ class Build:
|
||||||
self.components = data.components
|
self.components = data.components
|
||||||
else:
|
else:
|
||||||
self.device = self.json.get("device")
|
self.device = self.json.get("device")
|
||||||
self.components = self.json.get("components" [])
|
self.components = self.json.get("components", [])
|
||||||
|
|
||||||
device = self.get_id_hw_dpp(self.device)
|
device = self.get_id_hw_dpp(self.device)
|
||||||
components = self.json.get(self.components)
|
components = self.json.get(self.components)
|
||||||
|
@ -163,7 +163,7 @@ class Build:
|
||||||
return self.dmi.get("System")[0].get("SKU Number", "n/a").strip()
|
return self.dmi.get("System")[0].get("SKU Number", "n/a").strip()
|
||||||
|
|
||||||
def get_chassis(self):
|
def get_chassis(self):
|
||||||
return self.dmi.get("Chassis")[0].get("Type", '_virtual')
|
return self.dmi.get("Chassis")[0].get("Type", '_virtual') #
|
||||||
|
|
||||||
def get_version(self):
|
def get_version(self):
|
||||||
return self.dmi.get("System")[0].get("Verson", '_virtual')
|
return self.dmi.get("System")[0].get("Verson", '_virtual')
|
||||||
|
|
Loading…
Reference in a new issue