Issue #14584 has been updated by Jeff Weiss.

Status changed from Unreviewed to Accepted
Assignee set to Jeff Weiss

This is the general fix to the single problem encountered and fixed in #14582.

We'll likely want to either:

1. By default suppress STDERR and have a way to enable it, or
1. By default permit STDERR and have a way to squelch it.

Those two options will affect our DSL addition.

The "sensible" default to me is squelching the **output** to STDERR, but making 
that available to the `setcode` code block.

I feel that if you pass a string to `setcode` rather than the code block, you 
should see STDERR if things go awry.
----------------------------------------
Feature #14584: Make it easy to silence errors from facts
https://projects.puppetlabs.com/issues/14584#change-63274

Author: Matthaus Litteken
Status: Accepted
Priority: Normal
Assignee: Jeff Weiss
Category: 
Target version: 2.X
Keywords: 
Branch: 
Affected Facter version: 


Very often facts get written that generate noise on STDERR.

It seems like the current convention is to redirect STDERR to /dev/null, but 
this step is often forgotten. It would be awesome if facter had a built-in way, 
or default, of stripping stderr from facts.


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