From d8dd3f3c26712d9a9ae71c7eedd4ec0d00a3426d Mon Sep 17 00:00:00 2001 From: Adam Janovsky Date: Sun, 9 Oct 2022 19:57:01 +0200 Subject: fix CPE target_hw attribute --- sec_certs/sample/cpe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sec_certs/sample/cpe.py b/sec_certs/sample/cpe.py index 4a026ce1..f66b8f11 100644 --- a/sec_certs/sample/cpe.py +++ b/sec_certs/sample/cpe.py @@ -82,7 +82,7 @@ class CPE(PandasSerializableType, ComplexSerializableType): def target_hw(self) -> str: if self.uri is None: raise RuntimeError("URI is missing.") - return " ".join(self.uri.split(":")[11].split("_")) + return " ".join(self.uri.split(":")[10].split("_")) @property def pandas_tuple(self) -> Tuple: -- cgit v1.3.1