[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, experimental, updated. debian/1.5.8-2-160-gb26a2a8

Todd Zullinger tmz at pobox.com
Tue May 10 08:39:56 UTC 2011


The following commit has been merged in the experimental branch:
commit def33221bd7f20315205e9d63abe4ae8ece00f5e
Author: Todd Zullinger <tmz at pobox.com>
Date:   Mon Mar 21 11:18:07 2011 -0400

    (#6795) xendomains: Ignore error output from xm list
    
    If xend is not running, xm list writes to stderr and facter propagates
    this to the user.  Redirect stderr to /dev/null.

diff --git a/lib/facter/util/xendomains.rb b/lib/facter/util/xendomains.rb
index 4f590a8..6b0d403 100644
--- a/lib/facter/util/xendomains.rb
+++ b/lib/facter/util/xendomains.rb
@@ -2,7 +2,7 @@
 #
 module Facter::Util::Xendomains
   def self.get_domains
-    if xm_list = Facter::Util::Resolution.exec('/usr/sbin/xm list')
+    if xm_list = Facter::Util::Resolution.exec('/usr/sbin/xm list 2>/dev/null')
       domains = xm_list.split("\n").reject { |line| line =~ /^(Name|Domain-0)/ }
       domains.map { |line| line.split(/\s/)[0] }.join(',')
     end

-- 
Packaging of Facter for debian



More information about the Pkg-puppet-devel mailing list