Bug #3011
Facter::Manufacturer does not remove whitespaces
| Status: | Duplicate | Start date: | 01/06/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | library | |||
| Target version: | 1.5.8 | |||
| Keywords: | Affected Facter version: | |||
| Branch: | ||||
| Votes: | 0 |
Description
I just came across this in facter 1.5.6
The class Facter::manufacturer does not remove eccess white-spaces in the fact values.
The solution is in line 33:
@result = $1@
should be
@result = $1.chomp.lstrip.rstrip@
Related issues
History
Updated by James Turnbull over 2 years ago
- Status changed from Unreviewed to Accepted
- Target version changed from 30 to 1.6.0
Updated by James Turnbull over 2 years ago
- Target version changed from 1.6.0 to 1.5.8
Updated by Paul Nasrat over 2 years ago
- Status changed from Accepted to Duplicate
$1.strip should suffice, patches sent to list closing as dupe of #3008