[Pkg-puppet-devel] [facter] 156/180: (maint) Move misplaced confine statement in dhcp_servers fact

Stig Sandbeck Mathisen ssm at debian.org
Mon Jun 30 15:06:43 UTC 2014


This is an automated email from the git hooks/post-receive script.

ssm pushed a commit to branch master
in repository facter.

commit 64bdbfbecad47834eec4975524d2f3b51035de1e
Author: Will <whopper at puppetlabs.com>
Date:   Fri Jun 20 11:51:32 2014 -0700

    (maint) Move misplaced confine statement in dhcp_servers fact
    
    Previously, one confine statement was nested within another, meaning
    that every time we invoked the suitable method, we changed the number of
    confines.
---
 lib/facter/dhcp_servers.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/facter/dhcp_servers.rb b/lib/facter/dhcp_servers.rb
index f19dca0..d3ea817 100644
--- a/lib/facter/dhcp_servers.rb
+++ b/lib/facter/dhcp_servers.rb
@@ -17,8 +17,8 @@ require 'facter/util/dhcp_servers'
 
 
 Facter.add(:dhcp_servers) do
+  confine :kernel => :linux
   confine do
-    confine :kernel => :linux
     Facter::Core::Execution.which('nmcli')
   end
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-puppet/facter.git



More information about the Pkg-puppet-devel mailing list