From 21c0903540a3185deb1d938df898128102b4786f Mon Sep 17 00:00:00 2001 From: Pim Polderman Date: Wed, 28 Sep 2016 21:24:01 +0200 Subject: [PATCH] iptables_version fact doesn't return the version When running 'facter iptables_version' it doesn't return a value. The bug seems to in the confine not matching the right kernel value. --- lib/facter/iptables_version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/facter/iptables_version.rb b/lib/facter/iptables_version.rb index 6f7ae56..7da5937 100644 --- a/lib/facter/iptables_version.rb +++ b/lib/facter/iptables_version.rb @@ -1,5 +1,5 @@ Facter.add(:iptables_version) do - confine :kernel => :linux + confine :kernel => :Linux setcode do version = Facter::Util::Resolution.exec('iptables --version') if version -- 2.45.2