From 55f4e2905efee6137a0c968656d5a02a2d10b9fb Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Thu, 3 May 2012 00:11:34 +0200 Subject: [PATCH] more understandable regexp --- .../Task/Inventory/Input/Linux/Storages/Lsilogic.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/FusionInventory/Agent/Task/Inventory/Input/Linux/Storages/Lsilogic.pm b/lib/FusionInventory/Agent/Task/Inventory/Input/Linux/Storages/Lsilogic.pm index b57b28d198..ce0b46381a 100644 --- a/lib/FusionInventory/Agent/Task/Inventory/Input/Linux/Storages/Lsilogic.pm +++ b/lib/FusionInventory/Agent/Task/Inventory/Input/Linux/Storages/Lsilogic.pm @@ -50,7 +50,14 @@ sub _getDiskFromMptStatus { my @disks; while (my $line = <$handle>) { - next unless $line =~ /phys_id:(\d+).*product_id:\s*(\S*)\s+revision:(\S+).*size\(GB\):(\d+)/; + next unless $line =~ / + phys_id:(\d+) \s + scsi_id:\d+ \s + vendor:\S+ \s+ + product_id:(\S+) \s+ + revision:(\S+) \s+ + size\(GB\):(\d+) + /x; my $disk = { NAME => $params{name},