Issue #2342 has been reported by Frank Sorenson.
----------------------------------------
Bug #2342: Facter::Manufacturer.dmi_find_system_info truncates final character
of last value of each Handle
http://projects.reductivelabs.com/issues/2342
Author: Frank Sorenson
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version:
Complexity: Easy
Keywords:
dmi_find_system_info cuts of the last character of the last value in a handle.
For example, with dmidecode output:
<pre>
Handle 0x0300, DMI type 3, 13 bytes
Chassis Information
Manufacturer: Dell Inc.
...
Security Status: None
</pre>
a query for 'Chassis Information' => 'Security Status' will return 'Non',
rather than the expected 'None'.
and single character results, such as:
<pre>
Physical Memory Array
Location: System Board Or Motherboard
...
Number Of Devices: 2
</pre>
do not return a value, so no fact is created.
The offending line appears to be:
<pre>
if line =~ /#{key}/ and ( line =~ /#{value} 0x\d+ \(([-\w].*)\)\n*./ or line
=~ /#{value} ([-\w].*)\n*./ )
</pre>
There is likely a simple fix, however I have not mastered ruby well enough to
fix the bug myself.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---