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

James Turnbull james at lovedthanlost.net
Fri Jan 29 17:22:11 UTC 2010


The following commit has been merged in the upstream branch:
commit 77fa46babc4150eb90f3fe3f9ea0e84ed8d0c9e2
Author: duritong <peter.meier at immerda.ch>
Date:   Sun Feb 22 01:43:48 2009 +0100

    Fix virtual fact if xen but /proc/virtual present
    
    I found a xenu system where /proc/virtual was present, so
    facter always reported it as vserver_host. This fix will set
    facter only to vserver_host if the box is still seen as
    physical, hence no other virtual technology have been detected.

diff --git a/lib/facter/virtual.rb b/lib/facter/virtual.rb
index ce790c3..8150718 100644
--- a/lib/facter/virtual.rb
+++ b/lib/facter/virtual.rb
@@ -66,7 +66,7 @@ Facter.add("virtual") do
             end
         end
 
-        if FileTest.directory?('/proc/virtual')
+        if FileTest.directory?('/proc/virtual') && result=="physical"
             result = "vserver_host"
         end
 

-- 
Packaging of Facter for debian



More information about the Pkg-puppet-devel mailing list