Issue #2766 has been updated by James Turnbull.

Status changed from Closed to Re-opened
Assigned to changed from James Turnbull to Peter Meier

This fix causes issues like:

<pre>
[mdeh...@eng-dhcp-105 facter]$ sudo facter --debug
Could not retrieve lsbdistid: can't convert Array into String
Could not retrieve lsbdistid: can't convert Array into String
value for lsbdistid is still nil
value for netmask_wmaster0 is still nil
Could not retrieve lsbdistrelease: can't convert Array into String
Could not retrieve lsbdistrelease: can't convert Array into String
value for lsbdistrelease is still nil
Could not retrieve virtual: undefined method `each_line' for #<Array:
0xb6c694fc>
value for virtual is still nil
value for macaddress_wmaster0 is still nil
value for netmask_pan0 is still nil
Could not retrieve lsbdistrelease: can't convert Array into String
Could not retrieve lsbdistrelease: can't convert Array into String
value for lsbdistrelease is still nil
Could not retrieve lsbdistrelease: can't convert Array into String
Could not retrieve lsbdistrelease: can't convert Array into String
value for lsbdistrelease is still nil
value for lsbmajdistrelease is still nil
Could not retrieve lsbrelease: can't convert Array into String
Could not retrieve lsbrelease: can't convert Array into String
value for lsbrelease is still nil
value for ipaddress_wmaster0 is still nil
value for cfkey is still nil
value for network_wmaster0 is still nil
Found no suitable resolves of 2 for iphostnumber
value for iphostnumber is still nil
Could not retrieve lsbdistdescription: can't convert Array into String
Could not retrieve lsbdistdescription: can't convert Array into String
value for lsbdistdescription is still nil
value for ipaddress_pan0 is still nil
Could not retrieve lsbdistcodename: can't convert Array into String
Could not retrieve lsbdistcodename: can't convert Array into String
value for lsbdistcodename is still nil
Could not retrieve virtual: undefined method `each_line' for #<Array:
0xb6a6b984>
value for virtual is still nil
value for network_pan0 is still nil
Could not retrieve lsbdistid: can't convert Array into String
Could not retrieve lsbdistid: can't convert Array into String
value for lsbdistid is still nil
</pre>

because as Michael DeHaan commented:

<pre>
It looks like "return an array" is new behavior for exec, and maybe it
wasn't backported/tested for all of the old facts.   Thoughts?

In this case the best way to go is probably a "return type" parameter
that defaults to strings, and things that want arrays can ask for
them.
</pre>

----------------------------------------
Bug #2766: sysctl error messages are shown
http://projects.reductivelabs.com/issues/2766

Author: Peter Meier
Status: Re-opened
Priority: Normal
Assigned to: Peter Meier
Category: library
Target version: 1.6.0
Keywords: 
Branch: http://github.com/duritong/facter/tree/bug/master/2766


#2314 switched the collection of some values to sysctl. However if these sysctl 
values aren't present the following error message is shown:

---
sysctl: hw.vendor: value is not available
sysctl: hw.product: value is not available
sysctl: hw.serialno: value is not available
---

I think that facter shouldn't display them, instead it should simply not 
collect the fact or is it assumed that any Facter::Util::Resolution.exec should 
display stderr?

This is on OpenBSD 4.3 / i386


-- 
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.


Reply via email to