Skip to content

Commit

Permalink
Merge pull request #838 from po1vo/getValueFromSysProc-github
Browse files Browse the repository at this point in the history
_getValueFromSysProc() update: fix vpd_pg80 data parsing
  • Loading branch information
g-bougard committed Oct 9, 2020
2 parents d81b2d6 + 73705e5 commit 5f2c280
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 @@ -342,7 +342,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 5f2c280

Please sign in to comment.