iptables_version fact doesn't return the version
authorPim Polderman <info@pimpolderman.nl>
Wed, 28 Sep 2016 19:24:01 +0000 (21:24 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Sep 2016 19:24:01 +0000 (21:24 +0200)
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

index 6f7ae564740b4b9baea3cf34d27cd258f2f008b9..7da5937ad729689eed0c0cc9219d24957f1f787c 100644 (file)
@@ -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