]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/fireinfo/0004-Filter-all-IDs-that-only-consist-of-0xff.patch
Merge remote-tracking branch 'ms/x86_64' into next
[ipfire-2.x.git] / src / patches / fireinfo / 0004-Filter-all-IDs-that-only-consist-of-0xff.patch
1 From d58f8ef75a29dd6f8968084b5383ce0f39c75666 Mon Sep 17 00:00:00 2001
2 From: Michael Tremer <michael.tremer@ipfire.org>
3 Date: Wed, 12 Aug 2015 10:50:42 +0100
4 Subject: [PATCH 4/5] Filter all IDs that only consist of 0xff
5
6 Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 ---
8 src/fireinfo/system.py | 4 ++++
9 1 file changed, 4 insertions(+)
10
11 diff --git a/src/fireinfo/system.py b/src/fireinfo/system.py
12 index 4148c66eded7..edf7359a17e6 100644
13 --- a/src/fireinfo/system.py
14 +++ b/src/fireinfo/system.py
15 @@ -255,6 +255,10 @@ class System(object):
16 id = None
17 break
18
19 + # Check if the string only contains 0xff
20 + if all((e == "\xff" for e in id)):
21 + id = None
22 +
23 if id:
24 _ids.append(id)
25
26 --
27 2.4.3
28