]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
ip6tables_version fact doesn't return the version
authorPim Polderman <info@pimpolderman.nl>
Wed, 28 Sep 2016 19:29:33 +0000 (21:29 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Sep 2016 19:29:33 +0000 (21:29 +0200)
When running the 'facter ip6tables_version' it returns a empty string. The problem is in the confine :kernel => linux line. Adjusted this to capital L.

lib/facter/ip6tables_version.rb

index 3dce27f70cbbd0f544d5aab1228b4db369fac13d..f2540c62eeb41e954ad1da66f498c8f39b469bf2 100644 (file)
@@ -1,5 +1,5 @@
 Facter.add(:ip6tables_version) do
-  confine :kernel => :linux
+  confine :kernel => :Linux
   setcode do
     version = Facter::Util::Resolution.exec('ip6tables --version')
     if version