From cea5a279b705aa45cbf68b099bdbff3ae34707ac Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 28 Nov 2024 15:25:57 +0100 Subject: [PATCH] fix --- evidence/parse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evidence/parse.py b/evidence/parse.py index efa818d..1db83b4 100644 --- a/evidence/parse.py +++ b/evidence/parse.py @@ -117,7 +117,7 @@ class Build: self.components = data.components else: 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) components = self.json.get(self.components) @@ -163,7 +163,7 @@ class Build: return self.dmi.get("System")[0].get("SKU Number", "n/a").strip() 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): return self.dmi.get("System")[0].get("Verson", '_virtual')