From 249e4d161abc446d42f036068dea6eca35039f92 Mon Sep 17 00:00:00 2001 From: juge2 Date: Thu, 28 Feb 2019 08:16:55 +0100 Subject: [PATCH] Update Linux regex for detecting lspci PCI subsystem IDs --- lib/FusionInventory/Agent/Tools/Generic.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/FusionInventory/Agent/Tools/Generic.pm b/lib/FusionInventory/Agent/Tools/Generic.pm index bd3f6d1cdf..c22e138aa6 100644 --- a/lib/FusionInventory/Agent/Tools/Generic.pm +++ b/lib/FusionInventory/Agent/Tools/Generic.pm @@ -233,8 +233,8 @@ sub getPCIDevices { undef $controller; } elsif ($line =~ /^\tKernel driver in use: (\w+)/) { $controller->{DRIVER} = $1; - } elsif ($line =~ /^\tSubsystem: ([a-f\d]{4}:[a-f\d]{4})/) { - $controller->{PCISUBSYSTEMID} = $1; + } elsif ($line =~ /^\tSubsystem: ?(.*) \[?([a-f\d]{4}:[a-f\d]{4})\]?/) { + $controller->{PCISUBSYSTEMID} = $2; } }