[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, upstream, updated. 51bcebe38cab6088c901f1006339bbe40a36d161
Nick Lewis
nick at puppetlabs.com
Wed Aug 18 05:55:53 UTC 2010
The following commit has been merged in the upstream branch:
commit b2c21145885c15abc43b3641fcf903e13a859565
Author: Nick Lewis <nick at puppetlabs.com>
Date: Wed Jul 21 18:33:50 2010 -0700
Properly wrapped the windows ipaddress fact in a setcode block.
diff --git a/lib/facter/ipaddress.rb b/lib/facter/ipaddress.rb
index 7c62aa1..a08f26b 100644
--- a/lib/facter/ipaddress.rb
+++ b/lib/facter/ipaddress.rb
@@ -111,8 +111,10 @@ end
Facter.add(:ipaddress) do
confine :kernel => %w{windows}
- require 'socket'
- IPSocket.getaddress(Socket.gethostname)
+ setcode do
+ require 'socket'
+ IPSocket.getaddress(Socket.gethostname)
+ end
end
Facter.add(:ipaddress, :ldapname => "iphostnumber", :timeout => 2) do
--
Packaging of Facter for debian
More information about the Pkg-puppet-devel
mailing list