Issue #2342 has been updated by James Turnbull.

Status changed from Accepted to Closed
Target version changed from 1.6.0 to 1.5.9

This appears to have been fixed in a refactor.
----------------------------------------
Bug #2342: Facter::Manufacturer.dmi_find_system_info truncates final character 
of last value of each Handle
https://projects.puppetlabs.com/issues/2342

Author: Frank Sorenson
Status: Closed
Priority: Normal
Assignee: 
Category: library
Target version: 1.5.9
Keywords: 
Branch: 


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://projects.puppetlabs.com/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.

Reply via email to