Skip to content

Commit 62d26fe

Browse files
author
Helen
committed
Merge pull request #600 from jonnytpuppet/gem_version_workaround
Workaround for rubygems/bundler#3187
2 parents 331b91b + c1b0e7b commit 62d26fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/type/firewallchain.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
if chain =~ /^(BROUTING|FORWARD)$/
6060
raise ArgumentError, "PREROUTING, POSTROUTING, INPUT, and OUTPUT are the only inbuilt chains that can be used in table 'nat'"
6161
end
62-
if Gem::Version.new(Facter['kernelmajversion'].value) < Gem::Version.new('3.7') and protocol =~/^(IP(v6)?)?$/
62+
if Gem::Version.new(Facter['kernelmajversion'].value.dup) < Gem::Version.new('3.7') and protocol =~/^(IP(v6)?)?$/
6363
raise ArgumentError, "table nat isn't valid in IPv6. You must specify ':IPv4' as the name suffix"
6464
end
6565
when 'raw'

0 commit comments

Comments
 (0)