Code Review
/
puppet-modules
/
puppetlabs-firewall.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
e70157e
)
iptables_version fact doesn't return the version
author
Pim Polderman
<info@pimpolderman.nl>
Wed, 28 Sep 2016 19:24:01 +0000
(21:24 +0200)
committer
GitHub
<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
patch
|
blob
|
history
diff --git
a/lib/facter/iptables_version.rb
b/lib/facter/iptables_version.rb
index 6f7ae564740b4b9baea3cf34d27cd258f2f008b9..7da5937ad729689eed0c0cc9219d24957f1f787c 100644
(file)
--- a/
lib/facter/iptables_version.rb
+++ b/
lib/facter/iptables_version.rb
@@
-1,5
+1,5
@@
Facter.add(:iptables_version) do
- confine :kernel => :
l
inux
+ confine :kernel => :
L
inux
setcode do
version = Facter::Util::Resolution.exec('iptables --version')
if version