Issue #22322 has been updated by Melissa Stone.

Status changed from Merged - Pending Release to Closed

Release in Facter 1.7.4-rc1

----------------------------------------
Bug #22322: facter should suppress stderr from "swap" commands on Solaris
https://projects.puppetlabs.com/issues/22322#change-101220

* Author: Lee Lowder
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: solaris
* Target version: 1.7.4
* Keywords: solaris swap stderr
* Branch: https://github.com/puppetlabs/facter/pull/530
* Affected Facter version: 
----------------------------------------
[ from a customer ]

facter should suppress stderr from "swap" commands on Solaris (2>/dev/null) as 
this causes the pe-mcollective-metadata cron job to spew out many unnecessary 
emails to root on a system with no swap device.

This cron entry causes output (and conversely, an email to root every time it 
runs):

    # Puppet Name: pe-mcollective-metadata
    0,15,30,45 * * * * /opt/puppet/sbin/refresh-mcollective-metadata

Here's the junk from facter, when you do not have swap devices configured.   
Facter no longer errors when there's no swap device, however it shouldn't 
output any message (the swap command actually does this, so it needs to be 
redirected to null --- 2>/dev/null)

    root@mndevadm02 puppetlabs # /opt/puppet/sbin/refresh-mcollective-metadata
    No swap devices configured
    No swap devices configured
    No swap devices configured
    No swap devices configured



-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to