[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, upstream, updated. 51bcebe38cab6088c901f1006339bbe40a36d161

Rein Henrichs rein at puppetlabs.com
Wed Aug 18 05:56:02 UTC 2010


The following commit has been merged in the upstream branch:
commit bff84c2ac73db3880f7004a0defc745fa0b1d37c
Author: Rein Henrichs <rein at puppetlabs.com>
Date:   Fri Aug 6 12:13:09 2010 -0700

    [#4156] Applying patch by Kai
    
    Patch from the ticket[1] checks for /proc/vz instead of /proc/vz/vzinfo.
    NOTE that this causes a spec failure since the spec was not changed to
    match.
    
    [1] http://projects.reductivelabs.com/issues/4156
    
    Signed-off-by: Rein Henrichs <rein at puppetlabs.com>

diff --git a/lib/facter/util/virtual.rb b/lib/facter/util/virtual.rb
index 2d18c33..5f70d42 100644
--- a/lib/facter/util/virtual.rb
+++ b/lib/facter/util/virtual.rb
@@ -1,6 +1,6 @@
 module Facter::Util::Virtual
     def self.openvz?
-        FileTest.exists?("/proc/vz/veinfo")
+        FileTest.directory?("/proc/vz")
     end
 
     def self.openvz_type

-- 
Packaging of Facter for debian



More information about the Pkg-puppet-devel mailing list