]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/fireinfo/0005-Fix-crash-if-there-is-id-has-already-been-reset-to-N.patch
New package libvirt
[ipfire-2.x.git] / src / patches / fireinfo / 0005-Fix-crash-if-there-is-id-has-already-been-reset-to-N.patch
CommitLineData
257ce821
MT
1From deafec982e4c8f2e6ffa3bf70b0a94fa30158e9a Mon Sep 17 00:00:00 2001
2From: Michael Tremer <michael.tremer@ipfire.org>
3Date: Wed, 9 Sep 2015 15:04:43 +0100
4Subject: [PATCH 5/5] Fix crash if there is id has already been reset to None
5
6Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7---
8 src/fireinfo/system.py | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/src/fireinfo/system.py b/src/fireinfo/system.py
12index edf7359a17e6..c2ba12e818f0 100644
13--- a/src/fireinfo/system.py
14+++ b/src/fireinfo/system.py
15@@ -256,7 +256,7 @@ class System(object):
16 break
17
18 # Check if the string only contains 0xff
19- if all((e == "\xff" for e in id)):
20+ if id and all((e == "\xff" for e in id)):
21 id = None
22
23 if id:
24--
252.4.3
26