Skip to content

Commit

Permalink
more understandable regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
guillomovitch authored and Gonéri Le Bouder committed May 24, 2012
1 parent 4608ee4 commit 55f4e29
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -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},
Expand Down

0 comments on commit 55f4e29

Please sign in to comment.