Skip to content

Commit

Permalink
Changed regexp in _getValueFromSysProc() to properly parse some vpd_p…
Browse files Browse the repository at this point in the history
…g80 data
  • Loading branch information
po1vo committed Oct 5, 2020
1 parent 41dfe66 commit 73705e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/FusionInventory/Agent/Tools/Linux.pm
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ sub _getValueFromSysProc {
my $value = getFirstLine(file => $root.$file, logger => $logger);

return undef unless defined $value;
$value =~ s/^\W*([\w\s]+)\W*$/$1/;
$value = $1 if $value =~ /([[:print:]]*[[:alnum:]]+)/;

return trimWhitespace($value);
}
Expand Down
Binary file added resources/linux/storages/sles-multipath-sas.dump
Binary file not shown.

0 comments on commit 73705e5

Please sign in to comment.