Skip to content

Commit f492712

Browse files
committed
Ignoring log files found in a crashdump.
Signed-off-by: Rob Dobson <[email protected]>
1 parent fcae403 commit f492712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hwinfo/tools/inspector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def find_in_tarball(tarball, filename):
5151
tar.close()
5252
matches = []
5353
for m in members:
54-
if m.name.endswith(filename):
54+
if m.name.endswith(filename) and "/crash/" not in m.name:
5555
matches.append(m.name)
5656

5757
if len(matches) > 1:

0 commit comments

Comments
 (0)