[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, upstream, updated. 51bcebe38cab6088c901f1006339bbe40a36d161
James Turnbull
james at lovedthanlost.net
Wed Aug 18 05:55:44 UTC 2010
The following commit has been merged in the upstream branch:
commit 84d3d9f2abbe1f1a113103fe92d7fac39b734c9d
Author: James Turnbull <james at lovedthanlost.net>
Date: Sat Apr 24 15:42:37 2010 +1000
Fixed #3445 - Facter does not handle solaris branded zones properly
Thanks to Pavol Dilung for the fix.
diff --git a/lib/facter/util/virtual.rb b/lib/facter/util/virtual.rb
index ca7c367..80f4e2c 100644
--- a/lib/facter/util/virtual.rb
+++ b/lib/facter/util/virtual.rb
@@ -13,6 +13,7 @@ module Facter::Util::Virtual
end
def self.zone?
+ return true if FileTest.directory?("/.SUNWnative")
z = Facter::Util::Resolution.exec("/sbin/zonename")
return false unless z
return z.chomp != 'global'
--
Packaging of Facter for debian
More information about the Pkg-puppet-devel
mailing list