]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/fireinfo/0004-Filter-all-IDs-that-only-consist-of-0xff.patch
fireinfo: Import upstream fixes
[people/pmueller/ipfire-2.x.git] / src / patches / fireinfo / 0004-Filter-all-IDs-that-only-consist-of-0xff.patch
CommitLineData
71940784
MT
1From d58f8ef75a29dd6f8968084b5383ce0f39c75666 Mon Sep 17 00:00:00 2001
2From: Michael Tremer <michael.tremer@ipfire.org>
3Date: Wed, 12 Aug 2015 10:50:42 +0100
257ce821 4Subject: [PATCH 4/5] Filter all IDs that only consist of 0xff
71940784
MT
5
6Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7---
8 src/fireinfo/system.py | 4 ++++
9 1 file changed, 4 insertions(+)
10
11diff --git a/src/fireinfo/system.py b/src/fireinfo/system.py
257ce821 12index 4148c66eded7..edf7359a17e6 100644
71940784
MT
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--
272.4.3
28