Issue #20938 has been reported by Andrew Parker. ---------------------------------------- Bug #20938: domain fact prints spurious warnings to stderr https://projects.puppetlabs.com/issues/20938
* Author: Andrew Parker * Status: Unreviewed * Priority: Normal * Assignee: * Category: * Target version: 1.7.2 * Keywords: * Branch: * Affected Facter version: ---------------------------------------- When the host and domain information of a system is wrong, the `hostname` and `dnsdomainname` commands will output warnings to stderr, which are not captured by facter and so will show up in the calling systems stderr. There is nothing that the caller can do about this other than capture stderr itself, which makes use of facter difficult. The came to light when trying to diagnose why `puppet --version` was displaying: <pre> [root@localhost vagrant]# puppet --version hostname: Unknown host dnsdomainname: Unknown host .... </pre> After some investigation it came to light that those two `Unknown host` lines came from facter's domain fact: <pre> [vagrant@foo ~]$ facter domain hostname: Unknown host dnsdomainname: Unknown host </pre> This situation was created by generating a basic vagrant box based on <http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box> and then modified by changing the hostname to something nonsensical: <pre> $ hostname foo </pre> -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
