[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, experimental_upstream, updated. 1.5.9-54-g5a4eeed

Adrien Thebo adrien.thebo at gmail.com
Wed Jun 22 08:51:46 UTC 2011


The following commit has been merged in the experimental_upstream branch:
commit f6c9927b6450894fc7036881eab5ff2fb9524e71
Author: Adrien Thebo <adrien.thebo at gmail.com>
Date:   Fri Apr 1 10:44:22 2011 -0700

    (#6719) Corrected faulty logic in bugfix

diff --git a/lib/facter/virtual.rb b/lib/facter/virtual.rb
index e9571df..3c2d10f 100644
--- a/lib/facter/virtual.rb
+++ b/lib/facter/virtual.rb
@@ -25,7 +25,7 @@ Facter.add("virtual") do
 
     setcode do
 
-        if Facter::Util::Virtual.zone? and Facter(:operatingsystem) == "Solaris"
+        if Facter.value(:operatingsystem) == "Solaris" and Facter::Util::Virtual.zone?
             result = "zone"
         end
 

-- 
Packaging of Facter for debian



More information about the Pkg-puppet-devel mailing list